From c94e6c4133513b2941598ad231a3d52f6ad3578a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 14 Feb 2021 05:00:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Remove=20unused=20variables=20an?= =?UTF-8?q?d=20useless=20statements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Found by the IntelliJ Python inspections) --- lyricsgenius/genius.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lyricsgenius/genius.py b/lyricsgenius/genius.py index 5d765ac..e59e8bf 100644 --- a/lyricsgenius/genius.py +++ b/lyricsgenius/genius.py @@ -502,7 +502,6 @@ def find_artist_id(search_term): print('Searching for songs by {0}...\n'.format(search_term)) # Perform a Genius API search for the artist - found_artist = None response = self.search_all(search_term) found_artist = self._get_item_from_search_response(response, search_term, @@ -523,12 +522,6 @@ def find_artist_id(search_term): return None artist_info = self.artist(artist_id)['artist'] - found_name = artist_info['name'] - if found_name != artist_name and allow_name_change: - if self.verbose: - print("Changing artist name to '{a}'".format( - a=safe_unicode(found_name))) - artist_name = found_name # Create the Artist object artist = Artist(self, artist_info)