From b0693c284a506e987a6e392dc48e6cb1015fd15d Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Wed, 14 Oct 2020 01:26:45 +0200 Subject: [PATCH] Fixed unreachable links by removing forbidden chars --- src/song_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/song_types.py b/src/song_types.py index 3cc88ba..3896063 100644 --- a/src/song_types.py +++ b/src/song_types.py @@ -22,7 +22,7 @@ class Song: if audios is None: audios = [] self.verses = [] - self.name = name + self.name = name.replace("\\\\", "-").replace("\\", "") self.number = number self.author = author self.origin = origin @@ -56,7 +56,7 @@ class Song: self.verses.append(verse) def get_url(self): - return self.name + return self.name.replace("¿", "").replace("?", "") def chorded(self): for v in self.verses: