Skip to content

Commit

Permalink
🔧 Fix get_full_info logic for song searches
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffo99 committed Feb 14, 2021
1 parent a2ba056 commit 7edbe43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lyricsgenius/genius.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,7 @@ def search_song(self, title=None, artist="", song_id=None,

# Download full song info (an API call) unless told not to by user
if song_id is None and get_full_info:
new_info = self.song(song_id)['song']
song_info.update(new_info)

song_id = song_info['id']
song_info.update(self.song(song_info['id'])['song'])

if (song_info['lyrics_state'] == 'complete'
and not song_info.get('instrumental')):
Expand Down

0 comments on commit 7edbe43

Please sign in to comment.