forked from openlp/openlp
Fixed song meta data in OpenLyrics files to contain the application version
bzr-revno: 1712
This commit is contained in:
commit
a69705ccd3
@ -246,8 +246,9 @@ class OpenLyrics(object):
|
|||||||
# Append the necessary meta data to the song.
|
# Append the necessary meta data to the song.
|
||||||
song_xml.set(u'xmlns', u'http://openlyrics.info/namespace/2009/song')
|
song_xml.set(u'xmlns', u'http://openlyrics.info/namespace/2009/song')
|
||||||
song_xml.set(u'version', OpenLyrics.IMPLEMENTED_VERSION)
|
song_xml.set(u'version', OpenLyrics.IMPLEMENTED_VERSION)
|
||||||
song_xml.set(u'createdIn', get_application_version()[u'version'])
|
application_name = u'OpenLP ' + get_application_version()[u'version']
|
||||||
song_xml.set(u'modifiedIn', get_application_version()[u'version'])
|
song_xml.set(u'createdIn', application_name)
|
||||||
|
song_xml.set(u'modifiedIn', application_name)
|
||||||
song_xml.set(u'modifiedDate',
|
song_xml.set(u'modifiedDate',
|
||||||
datetime.datetime.now().strftime(u'%Y-%m-%dT%H:%M:%S'))
|
datetime.datetime.now().strftime(u'%Y-%m-%dT%H:%M:%S'))
|
||||||
properties = etree.SubElement(song_xml, u'properties')
|
properties = etree.SubElement(song_xml, u'properties')
|
||||||
|
Loading…
Reference in New Issue
Block a user