https://bugs.kde.org/show_bug.cgi?id=521162
Stephan Wezel <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Stephan Wezel <[email protected]> --- Created attachment 192972 --> https://bugs.kde.org/attachment.cgi?id=192972&action=edit trimm white spaces (e.g. new line characters) after reading line from m3u file Relative paths worked in previous versions. But with haruna 1.8.1 it stopped working. The code how m3u files are imported was changed. Which contains now an error It uses the readLine function from QFile (https://doc.qt.io/qt-6/qiodevice.html#readLine-1) but which returns also the new line characters (e.g. \n) The documentation of QByteArray QIODevice::readLine mention following: "The resulting line can have trailing end-of-line characters ("\n" or "\r\n"), so calling QByteArray::trimmed() may be necessary." Thus when adding the call to the trimmed() method after reading the line content the file with relative path is found again and can be played. Attached is a patch to fix this -- You are receiving this mail because: You are watching all bug changes.
