Remove debugging statement and conform to line length.

This commit is contained in:
stlutz 2020-05-16 17:48:56 +02:00
parent 15402f6aa7
commit 5d306d6fd9
2 changed files with 2 additions and 3 deletions

View file

@ -383,8 +383,6 @@ class Genius(Backend):
verse_div = html.find("div", verse_div = html.find("div",
class_=re.compile("Lyrics__Container")) class_=re.compile("Lyrics__Container"))
if not verse_div: if not verse_div:
with open('instrumental.html', 'w') as text_file:
text_file.write(str(html))
if html.find("div", if html.find("div",
class_=re.compile("LyricsPlaceholder__Message"), class_=re.compile("LyricsPlaceholder__Message"),
string="This song is an instrumental"): string="This song is an instrumental"):

View file

@ -474,7 +474,8 @@ class LyricsGeniusScrapeTest(LyricsGeniusBaseTest):
""" """
# https://github.com/beetbox/beets/issues/3535 # https://github.com/beetbox/beets/issues/3535
# expected return value None # expected return value None
self.assertEqual(genius.lyrics_from_song_page('https://genius.com/sample'), song_url = 'https://genius.com/sample'
self.assertEqual(genius.lyrics_from_song_page(song_url),
None) None)