From 7f899dc35daa30846d2c99e1631333edab79b23d Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 22 Feb 2018 21:36:20 +0000 Subject: [PATCH] Add more meta --- openlp/plugins/songs/lib/mediaitem.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/openlp/plugins/songs/lib/mediaitem.py b/openlp/plugins/songs/lib/mediaitem.py index 5a842d7a8..e111aecbb 100644 --- a/openlp/plugins/songs/lib/mediaitem.py +++ b/openlp/plugins/songs/lib/mediaitem.py @@ -686,11 +686,17 @@ class SongMediaItem(MediaManagerItem): if Settings().value('core/ccli number'): item.raw_footer.append(translate('SongsPlugin.MediaItem', 'CCLI License: ') + Settings().value('core/ccli number')) + item.metadata.append("title: {title}".format(title=song.title)) + if song.alternate_title: + item.metadata.append("alt title: {title}".format(title=song.alternate_title)) if song.songbook_entries: for songbook_entry in song.songbook_entries: - item.metadata.append("songbook: {book}/{num}/{pub}".format(book=songbook_entry.songbook.name, - num=songbook_entry.entry, - pub=songbook_entry.songbook.publisher)) + item.metadata.append("songbook: {book}/{num}/{pub}". + format(book=songbook_entry.songbook.name, num=songbook_entry.entry, + pub=songbook_entry.songbook.publisher)) + if song.topics: + for topics in song.topics: + item.metadata.append("topic: {topic}".format(topic=topics.name)) return authors_all def service_load(self, item):