Properly handle `(' and `)' for genius.com - lyrics - Print lyrics of songs given the artist and title
(HTM) hg clone https://bitbucket.org/iamleot/lyrics
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset cbcb58f8ab293bce4531f17fdfe82302aacda2b0
(DIR) parent 218f63a3b9ac1c37f699fb339d0d797afd5723c6
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 4 Jan 2019 22:47:11
Properly handle `(' and `)' for genius.com
Diffstat:
lyrics.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 218f63a3b9ac -r cbcb58f8ab29 lyrics.py
--- a/lyrics.py Sat Sep 29 20:37:00 2018 +0200
+++ b/lyrics.py Fri Jan 04 22:47:11 2019 +0100
@@ -58,7 +58,7 @@
class Genius(LyricsFetcher):
def _url(self):
artist = self.artist.replace("'", "").replace(' ', '-').replace('&', 'and')
- title = self.title.replace("'", "").replace(' ', '-').replace(',', '')
+ title = self.title.replace("'", "").replace(' ', '-').replace(',', '').replace('(', '').replace(')', '')
return 'https://genius.com/{}-{}-lyrics'.format(artist, title)
def lyrics(self):