diff --git a/lyricsgenius/genius.py b/lyricsgenius/genius.py index e9368f5..44f9943 100644 --- a/lyricsgenius/genius.py +++ b/lyricsgenius/genius.py @@ -134,15 +134,15 @@ def lyrics(self, song_id=None, song_url=None, remove_section_headers=False): ) # Determine the class of the div - div = html.find("div", class_=re.compile("^lyrics$|Lyrics__Root")) - if div is None: + divs = html.find_all("div", class_=re.compile("^lyrics$|Lyrics__Container")) + if divs is None or len(divs) <= 0: if self.verbose: print("Couldn't find the lyrics section. " "Please report this if the song has lyrics.\n" "Song URL: https://genius.com/{}".format(path)) return None - lyrics = div.get_text() + lyrics = "\n".join([div.get_text() for div in divs]) # Remove [Verse], [Bridge], etc. if self.remove_section_headers or remove_section_headers: