jacquesh / foo_openlyrics

An open-source lyric display panel for foobar2000
MIT License
429 stars 24 forks source link

[Help] Prefer field of metadata in order specified #161

Closed Rexadev closed 1 year ago

Rexadev commented 2 years ago

image

When Lyrics are in both Lyrics and SyncedLyrics it plays Lyrics

Some time it prefers SyncedLyrics too

~Maybe for flac and mp3 it prefers SyncedLyrics and for opus Lyrics~

image

jacquesh commented 2 years ago

Can you please:

(and then you can disable debug logging again afterwards)

Rexadev commented 2 years ago

When Not working

Opening track for playback: "Path\Bow Chicka Wow Wow.opus"
INFO-OpenLyrics: ID3 tag artist appears multiple times for /Mike Posner/Bow Chicka Wow Wow/Bow Chicka Wow Wow. Only the first value will be used of: /Mike Posner/Lil' Wayne.
INFO-OpenLyrics: Failed to read search-avoidance info: Unsupported format or corrupted file
INFO-OpenLyrics: ID3 tag artist appears multiple times for /Mike Posner/Bow Chicka Wow Wow/Bow Chicka Wow Wow. Only the first value will be used of: /Mike Posner/Lil' Wayne.
INFO-OpenLyrics: Searching for lyrics for artist='Mike Posner', album='Bow Chicka Wow Wow', title='Bow Chicka Wow Wow'...
INFO-OpenLyrics: Save file name format '[%filename%]' with directory class 'TrackFileDirectory' evaluated to 'file://Path\Bow Chicka Wow Wow'
INFO-OpenLyrics: Querying for lyrics in file://Path\Bow Chicka Wow Wow.lrc...
INFO-OpenLyrics: Querying for lyrics in file://Path\Bow Chicka Wow Wow.txt...
INFO-OpenLyrics: Found 0 lyrics in local files: file://Path\Bow Chicka Wow Wow
INFO-OpenLyrics: Failed to retrieve lyrics from source: Local files
INFO-OpenLyrics: ID3 tag artist appears multiple times for /Mike Posner/Bow Chicka Wow Wow/Bow Chicka Wow Wow. Only the first value will be used of: /Mike Posner/Lil' Wayne.
INFO-OpenLyrics: Searching for lyrics in tag: SYNCEDLYRICS
INFO-OpenLyrics: Searching for lyrics in tag: LYRICS
INFO-OpenLyrics: ID3 tag artist appears multiple times for /Mike Posner/Bow Chicka Wow Wow/Bow Chicka Wow Wow. Only the first value will be used of: /Mike Posner/Lil' Wayne.
INFO-OpenLyrics: Found lyrics in tag: LYRICS
INFO-OpenLyrics: Searching for lyrics in tag: UNSYNCEDLYRICS
INFO-OpenLyrics: Searching for lyrics in tag: UNSYNCED LYRICS
INFO-OpenLyrics: Successfully retrieved lyrics from source: Metadata tags
INFO-OpenLyrics: Parsing lyrics text...
INFO-OpenLyrics: Loaded lyrics already form a valid UTF-8 sequence
INFO-OpenLyrics: Parsing LRC lyric text...
INFO-OpenLyrics: ID3 tag artist appears multiple times for /Mike Posner/Bow Chicka Wow Wow/Bow Chicka Wow Wow. Only the first value will be used of: /Mike Posner/Lil' Wayne.
INFO-OpenLyrics: Lyric loading complete
INFO-OpenLyrics: ID3 tag artist appears multiple times for /Mike Posner/Bow Chicka Wow Wow/Bow Chicka Wow Wow. Only the first value will be used of: /Mike Posner/Lil' Wayne.
jacquesh commented 2 years ago

That is working. There are no lyrics in "SYNCEDLYRICS". So it uses those in "LYRICS".

jacquesh commented 2 years ago

O_o that's...very strange. The code is literally just "do we have a tag? Then collect the data it contains. Did we get any text? If yes then use that". There seemingly isn't a whole lot of room for it to go wrong.

I'll have to try reproduce it locally.

jacquesh commented 1 year ago

@Rexadev is this still happening for you? I can't reproduce this locally =/

I've setup the same tag search sequence and tag contents shown in your screenshots and on my end it does manage to find lyrics in the SYNCEDLYRICS tag.