From 9f4e8b89fcd8f4d87968cdbea029af5cd23df29f Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Thu, 29 Oct 2020 17:13:57 +0100 Subject: [PATCH] fix: canciones con el mismo nombre tenian la misma URL y se sobreescribian --- src/song_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/song_types.py b/src/song_types.py index ad90ee2..8082c61 100644 --- a/src/song_types.py +++ b/src/song_types.py @@ -56,7 +56,7 @@ class Song: self.verses.append(verse) def get_url(self): - return self.name.replace("¿", "").replace("?", "") + return "%03d %s" % (self.number, self.name.replace("¿", "").replace("?", "")) def chorded(self): for v in self.verses: