fix: canciones con el mismo nombre tenian la misma URL y se sobreescribian

This commit is contained in:
Carlos Galindo 2020-10-29 17:13:57 +01:00
parent 30dc36d262
commit 9f4e8b89fc

View file

@ -56,7 +56,7 @@ class Song:
self.verses.append(verse) self.verses.append(verse)
def get_url(self): def get_url(self):
return self.name.replace("¿", "").replace("?", "") return "%03d %s" % (self.number, self.name.replace("¿", "").replace("?", ""))
def chorded(self): def chorded(self):
for v in self.verses: for v in self.verses: