Remove all `,' for genius.com, should not end up in the URL - lyrics - Print lyrics of songs given the artist and title
HTML hg clone https://bitbucket.org/iamleot/lyrics
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR changeset 77674e104120ffc140ad626cd7b385747d98e4dc
DIR parent 38bccdfe9bbd2e5e6bc7a21b68efda98a52b8469
HTML Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 14 Aug 2018 11:27:32
Remove all `,' for genius.com, should not end up in the URL
Diffstat:
lyrics.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 38bccdfe9bbd -r 77674e104120 lyrics.py
--- a/lyrics.py Sun Aug 12 13:55:01 2018 +0200
+++ b/lyrics.py Tue Aug 14 11:27:32 2018 +0200
@@ -58,7 +58,7 @@
class Genius(LyricsFetcher):
def _url(self):
artist = self.artist.replace("'", "").replace(' ', '-')
- title = self.title.replace("'", "").replace(' ', '-')
+ title = self.title.replace("'", "").replace(' ', '-').replace(',', '')
return 'https://genius.com/{}-{}-lyrics'.format(artist, title)
def lyrics(self):