Replace `&' in artist with `and'. - 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 c647dc8d1dd49e4ec09d40491c4a528c393b8a22
(DIR) parent 77674e104120ffc140ad626cd7b385747d98e4dc
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 9 Sep 2018 11:45:48
Replace `&' in artist with `and'.
Diffstat:
lyrics.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 77674e104120 -r c647dc8d1dd4 lyrics.py
--- a/lyrics.py Tue Aug 14 11:27:32 2018 +0200
+++ b/lyrics.py Sun Sep 09 11:45:48 2018 +0200
@@ -57,7 +57,7 @@
class Genius(LyricsFetcher):
def _url(self):
- artist = self.artist.replace("'", "").replace(' ', '-')
+ artist = self.artist.replace("'", "").replace(' ', '-').replace('&', 'and')
title = self.title.replace("'", "").replace(' ', '-').replace(',', '')
return 'https://genius.com/{}-{}-lyrics'.format(artist, title)