Closed gderber closed 7 years ago
Thanks for the detailed documentation! Seems like a good idea to try searching for the pre-colon part of the title.
To make this more complicated than I initially thought, I found a counter example that needs the information post colon.
Credits T Judd - I Stoled This Record - Skoal: The Grundy County Spitting Incident Musicbrainz page: https://musicbrainz.org/recording/69375f22-2c82-4470-906c-c0916ea28a97 LyricWiki page: http://lyrics.wikia.com/wiki/Cledus_T._Judd:Skoal:_The_Grundy_County_Spitting_Incident
Without the information after the: beet -vv lyrics -f artist:Cledus title:Skoal user configuration: /home/user/.config/beets/config.yaml data directory: /home/user/.config/beets plugin paths: /home/user/.beets/beets-setlister/beetsplug Sending event: pluginload artresizer: method is (2, (6, 8, 9)) thumbnails: using IM to write metadata thumbnails: using GIO to compute URIs lyrics: Disabling google source: no API key configured. inline: adding item field multidisc inline: adding item field lmultidisc library database: /home/user/.config/beets/library.db library directory: /home/user/Music Sending event: library_opened lyrics: failed to fetch: https://www.musixmatch.com/lyrics/Cledus-T.-Judd/Skoal (404) lyrics: lyrics not found: Cledus T. Judd - I Stoled This Record - 05. Skoal (2:24) Sending event: cli_exit
With the information after the colon:
beet -vv lyrics -f artist:Cledus title:Skoal
user configuration: /home/user/.config/beets/config.yaml
data directory: /home/user/.config/beets
plugin paths: /home/user/.beets/beets-setlister/beetsplug
Sending event: pluginload
artresizer: method is (2, (6, 8, 9))
thumbnails: using IM to write metadata
thumbnails: using GIO to compute URIs
lyrics: Disabling google source: no API key configured.
inline: adding item field multidisc
inline: adding item field lmultidisc
library database: /home/geoff/.config/beets/library.db
library directory: /home/geoff/Music
Sending event: library_opened
lyrics: got lyrics from backend: LyricsWiki
lyrics: fetched lyrics: Cledus T. Judd - I Stoled This Record - 05. Skoal: The Grundy County Spitting Incident (2:24)
So I am thinking the fix might be something along the lines of if [[lyrics not found]] && [[ title contains ":" ]] then Title=title without everything post colon. Attempt lyrics download again.
I did find yet another case that is even more complicated, and I don't have any ideas on how to code it.
Nightwish - Angels Fall First - Lappi (Lapland): I. Erämaajärvi Nightwish - Angels Fall First - Lappi (Lapland): II. Witchdrums Nightwish - Angels Fall First - Lappi (Lapland): III. This Moment Is Eternity Nightwish - Angels Fall First - Lappi (Lapland): IV. Etiäinen
Musicbrainz album page, tracks 9-12: https://musicbrainz.org/release/2756c819-b6d7-3052-9ff8-8c05e65eb5df All correspond to a single LyricWiki entry: http://lyrics.wikia.com/wiki/Nightwish:Lappi_(Lapland)
Stripping the information after the colon would download the lyrics, but for all songs. I don't see a clean way to only download the lyrics for a single song. Maybe this last case should be it's own bug.
Thanks! @Kraymer has a fix that works for the first case, at least, by trying the title both with and without a subtitle.
Thank you. I hope I provided enough information to fix not finding lyrics in one case without breaking finding lyrics in another case.
Problem
The lyrics plugin fails to find the lyrics for titles that have a "subtitle" for example: The musicbrainz artist - album - title Nightwish - Endless Forms Most Beautiful - The Greatest Show on Earth: Chapter I) Four Point Six / Chapter II) Life / Chapter III) The Toolmaker / Chapter IV) The Understanding / Chapter V) Sea-Worn Driftwood musicbrainz page for this song: https://musicbrainz.org/recording/42854595-599c-438d-b3f5-0be264d41ccb
Corresponds to lyricwiki title: Nightwish - Endless Forms Most Beautiful - The Greatest Show on Earth Lyricwiki page: http://lyrics.wikia.com/wiki/Nightwish:The_Greatest_Show_On_Earth
Basically, everything after the ":" needs to be dropped before searching.
This also applies to Pink Floyd - Atom Heart Mother - Atom Heart Mother: a) Father’s Shout / b) Breast Milky / c) Mother Fore / d) Funky Dung / e) Mind Your Throats Please / f) Remergence Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup