Deal with empty ccli tag in OpenSong imports

This commit is contained in:
Stewart Becker 2014-04-30 21:50:57 +01:00
parent a56f00ddc0
commit eb64c136d0
2 changed files with 5 additions and 1 deletions

View File

@ -163,7 +163,10 @@ class OpenSongImport(SongImport):
ustring = str(root.__getattr__(attr))
if isinstance(fn_or_string, str):
if attr in ['ccli']:
setattr(self, fn_or_string, int(ustring))
if ustring:
setattr(self, fn_or_string, int(ustring))
else:
setattr(self, fn_or_string, None)
else:
setattr(self, fn_or_string, ustring)
else:

View File

@ -5,6 +5,7 @@
<copyright>Public Domain </copyright>
<presentation>T</presentation>
<capo print="false"></capo>
<ccli></ccli>
<tempo></tempo>
<theme></theme>
<alttheme></alttheme>