corregir error cuando falta autor o origen

This commit is contained in:
Carlos Galindo 2021-05-22 18:22:20 +02:00
parent 1ccc7e16d4
commit 362dfd34e7

View file

@ -18,8 +18,8 @@ class Song:
self.verses = [] self.verses = []
self.name = name.replace("\\\\", "-").replace("\\", "") self.name = name.replace("\\\\", "-").replace("\\", "")
self.number = number self.number = number
self.author = author.replace("\\", "") self.author = author.replace("\\", "") if author else author
self.origin = origin.replace("\\", "") self.origin = origin.replace("\\", "") if origin else origin
self.latex_file = latex_file self.latex_file = latex_file
self.audios = audios self.audios = audios
self.capo = capo self.capo = capo