diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 27a29e149..71e1d4ef3 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -383,8 +383,6 @@ class Genius(Backend): verse_div = html.find("div", class_=re.compile("Lyrics__Container")) if not verse_div: - with open('instrumental.html', 'w') as text_file: - text_file.write(str(html)) if html.find("div", class_=re.compile("LyricsPlaceholder__Message"), string="This song is an instrumental"): diff --git a/test/test_lyrics.py b/test/test_lyrics.py index d0507c16f..d31116284 100644 --- a/test/test_lyrics.py +++ b/test/test_lyrics.py @@ -474,7 +474,8 @@ class LyricsGeniusScrapeTest(LyricsGeniusBaseTest): """ # https://github.com/beetbox/beets/issues/3535 # 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)