strawberrymusicplayer / strawberry

:strawberry: Strawberry Music Player
https://www.strawberrymusicplayer.org/
GNU General Public License v3.0
2.53k stars 164 forks source link

cueparser - issue for multiple files #1463

Closed yodayox closed 2 weeks ago

yodayox commented 2 weeks ago

Describe the bug cueparser ignore header tags (like PERFORMER or TITLE) for the second FILE in the cuesheet file

To Reproduce Steps to reproduce the behavior. consider the following example of a cuesheet file:

PERFORMER "Judas Priest"
TITLE "Unleashed In The East"
FILE "Judas Priest - Unleashed In The East - Side 1.flac" WAVE
  TRACK 01 AUDIO
    TITLE "Exciter"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Running Wild"
    INDEX 01 05:41:00
  TRACK 03 AUDIO
    TITLE "Sinner"
    INDEX 01 08:36:00
  TRACK 04 AUDIO
    TITLE "The Ripper"
    INDEX 01 16:06:00
  TRACK 05 AUDIO
    TITLE "The Green Manalishi (With The Two-Pronged Crown)"
    INDEX 01 18:46:00
FILE "Judas Priest - Unleashed In The East - Side 2.flac" WAVE
  TRACK 06 AUDIO
    TITLE "Diamonds And Rust"
    INDEX 01 00:00:00
  TRACK 07 AUDIO
    TITLE "Victim Of Changes"
    INDEX 01 03:39:00
  TRACK 08 AUDIO
    TITLE "Genocide"
    INDEX 01 10:51:00
  TRACK 09 AUDIO
    TITLE "Tyrant"
    INDEX 01 18:14:00

player spits nothing for Artist and Album when parse the second FILE Expected behavior header tags needs to be populated too, for the second FILE Screenshots: snapshot6

System Information:

yodayox commented 2 weeks ago

that did the trick :-) !