Content-Length: 212296 | pFad | http://github.com/Arthi-chaud/Meelo/commit/a7eb3514fc124275b8fa79e01e87f4b7000cf5e9

83 Matcher: Genius: Fix selector on Lyrics · Arthi-chaud/Meelo@a7eb351 · GitHub
Skip to content

Commit

Permalink
Matcher: Genius: Fix selector on Lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthi-chaud committed Feb 4, 2025
1 parent 54514bb commit a7eb351
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions matcher/matcher/providers/genius.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,10 @@ def _get_song(self, song_id: Any) -> Any | None:
pass

def _get_song_lyrics(self, song: Any) -> str | None:
html = song
html: BeautifulSoup = song
divs = html.find_all(
"div", class_=re.compile(r"^Lyrics-\w{2}.\w+.[1]|Lyrics__Container")
"div",
attrs={"data-lyrics-container": "true"},
)
return self._clean_html(divs)

Expand Down

0 comments on commit a7eb351

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Arthi-chaud/Meelo/commit/a7eb3514fc124275b8fa79e01e87f4b7000cf5e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy