forked from openlp/openlp
Deal with empty ccli tag in OpenSong imports
This commit is contained in:
parent
a56f00ddc0
commit
eb64c136d0
@ -163,7 +163,10 @@ class OpenSongImport(SongImport):
|
|||||||
ustring = str(root.__getattr__(attr))
|
ustring = str(root.__getattr__(attr))
|
||||||
if isinstance(fn_or_string, str):
|
if isinstance(fn_or_string, str):
|
||||||
if attr in ['ccli']:
|
if attr in ['ccli']:
|
||||||
|
if ustring:
|
||||||
setattr(self, fn_or_string, int(ustring))
|
setattr(self, fn_or_string, int(ustring))
|
||||||
|
else:
|
||||||
|
setattr(self, fn_or_string, None)
|
||||||
else:
|
else:
|
||||||
setattr(self, fn_or_string, ustring)
|
setattr(self, fn_or_string, ustring)
|
||||||
else:
|
else:
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<copyright>Public Domain </copyright>
|
<copyright>Public Domain </copyright>
|
||||||
<presentation>T</presentation>
|
<presentation>T</presentation>
|
||||||
<capo print="false"></capo>
|
<capo print="false"></capo>
|
||||||
|
<ccli></ccli>
|
||||||
<tempo></tempo>
|
<tempo></tempo>
|
||||||
<theme></theme>
|
<theme></theme>
|
||||||
<alttheme></alttheme>
|
<alttheme></alttheme>
|
||||||
|
Loading…
Reference in New Issue
Block a user