diff --git a/lyricsgenius/__init__.py b/lyricsgenius/__init__.py index 935d91e..2f97eb4 100644 --- a/lyricsgenius/__init__.py +++ b/lyricsgenius/__init__.py @@ -14,4 +14,4 @@ __url__ = 'https://github.com/johnwmillr/LyricsGenius' __description__ = 'A Python wrapper around the Genius API' __license__ = 'MIT' -__version__ = '3.0.1' +__version__ = '3.1.1' diff --git a/lyricsgenius/genius.py b/lyricsgenius/genius.py index b9e6641..d51c07f 100644 --- a/lyricsgenius/genius.py +++ b/lyricsgenius/genius.py @@ -134,7 +134,7 @@ def lyrics(self, song_id=None, song_url=None, remove_section_headers=False): ) # Determine the class of the div - divs = html.find_all("div", class_=re.compile("^lyrics$|Lyrics__Container")) + divs = html.find_all("div", class_=re.compile(r"^Lyrics-\w{2}.\w+.[1]|Lyrics__Container")) if divs is None or len(divs) <= 0: if self.verbose: print("Couldn't find the lyrics section. "