Hello there, I was batch-converting some music files with k3b, ripped with cue files, and it looks like k3b fails to parse the cue file if the TITLE section is larger than 80 bytes. For now, I ran `LANG=C sed -i 's/TITLE\s\+"\(.\{80\}\).\+"/TITLE "\1"/' *.cue` on my files, but this is less than ideal. Tested with k3b 17.08.1 on Arch linux (this version doesn't appear on the bug tracker page). k3b fails with: (K3b::CueFileParser) unknown Cue line: ' "TITLE \"This is a title wider than 80 bytes**********************************************\"" ' What's nice is that the bug is EXTREMELY EASY to reproduce: just create a file with the following line and a .cue extension. TITLE "This is a title wider than 80 bytes*********************************************" Remove a star, and you instead get: (K3b::CueFileParser) successfully parsed cue file. I would like to see the following happening: - Support for titles longer than 80 bytes, with unicode if possible - If too complicated, cut the title to 80 bytes and warn the user - If this can't be implemented because of manpower constraints, at least provide a decent error message. I could try to do it myself, but I suspect that it will take no time to fix for someone familiar with the codebase. Thanks for maintaining k3b, Mayeul
Created attachment 107841 [details] Failing cue file
Created attachment 107842 [details] Passing cue file
Comment on attachment 107842 [details] Passing cue file Note that this isn't a useful cue file, and k3b will still output an error, but not the same as the other file.
Git commit c84ad1e9666ffff97622b8e96557fbe6061fd5a7 by Leslie Zhai. Committed on 14/09/2017 at 02:25. Pushed by lesliezhai into branch 'master'. Hi Mayeul, Please test it for me what will happen if cue title is larger than 80 bytes, thanks! M +2 -1 libk3b/projects/k3bcuefileparser.cpp https://commits.kde.org/k3b/c84ad1e9666ffff97622b8e96557fbe6061fd5a7
Git commit faaa4299083f23a39352602c4e69053845ce81c2 by Leslie Zhai. Committed on 25/09/2017 at 03:02. Pushed by lesliezhai into branch 'master'. Revert parseLine for CueFileParser owing to no responese for the testplan. M +1 -2 libk3b/projects/k3bcuefileparser.cpp https://commits.kde.org/k3b/faaa4299083f23a39352602c4e69053845ce81c2