mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Remove debugging statement and conform to line length.
This commit is contained in:
parent
15402f6aa7
commit
5d306d6fd9
2 changed files with 2 additions and 3 deletions
|
|
@ -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"):
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue