Fixed unreachable links by removing forbidden chars

This commit is contained in:
Carlos Galindo 2020-10-14 01:26:45 +02:00
parent c8c7eae33c
commit b0693c284a

View file

@ -22,7 +22,7 @@ class Song:
if audios is None: if audios is None:
audios = [] audios = []
self.verses = [] self.verses = []
self.name = name self.name = name.replace("\\\\", "-").replace("\\", "")
self.number = number self.number = number
self.author = author self.author = author
self.origin = origin self.origin = origin
@ -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 return self.name.replace("¿", "").replace("?", "")
def chorded(self): def chorded(self):
for v in self.verses: for v in self.verses: