forked from openlp/openlp
keep copyright field empty if imported song does not have any copyright information
This commit is contained in:
parent
3cdac511e2
commit
fa79dd2cca
@ -44,6 +44,7 @@ class ServiceItemType(object):
|
|||||||
Image = 2
|
Image = 2
|
||||||
Command = 3
|
Command = 3
|
||||||
|
|
||||||
|
|
||||||
class ItemCapabilities(object):
|
class ItemCapabilities(object):
|
||||||
"""
|
"""
|
||||||
Provides an enumeration of a serviceitem's capabilities
|
Provides an enumeration of a serviceitem's capabilities
|
||||||
|
@ -297,6 +297,8 @@ class OpenLyricsParser(object):
|
|||||||
song_xml = objectify.fromstring(xml)
|
song_xml = objectify.fromstring(xml)
|
||||||
properties = song_xml.properties
|
properties = song_xml.properties
|
||||||
song.copyright = unicode(properties.copyright.text)
|
song.copyright = unicode(properties.copyright.text)
|
||||||
|
if song.copyright == u'None':
|
||||||
|
song.copyright = u''
|
||||||
song.verse_order = unicode(properties.verseOrder.text)
|
song.verse_order = unicode(properties.verseOrder.text)
|
||||||
if song.verse_order == u'None':
|
if song.verse_order == u'None':
|
||||||
song.verse_order = u''
|
song.verse_order = u''
|
||||||
|
Loading…
Reference in New Issue
Block a user