https://bugs.kde.org/show_bug.cgi?id=528802
Bug ID: 528802
Summary: Playlist items with "#" in the filename are dropped
when a saved playlist is loaded
Classification: Applications
Product: Haruna
Version First 1.9.0
Reported In:
Platform: SteamOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Files whose names contain "#" are saved correctly to a playlist's .m3u8 file
(as %23), but are silently skipped when the playlist is loaded again, so the
playlist tab comes back empty after a restart.
STEPS TO REPRODUCE
1. Create a playlist tab and add a folder of files with "#" in their names,
e.g. "Show #01 - Title.mkv"
2. Wait for the playlist to save (the .m3u8 in ~/.local/share/haruna/playlists/
contains all entries, with "#" encoded as %23)
3. Restart Haruna and switch to that tab
OBSERVED RESULT
The tab is empty. The entries are still in the .m3u8 file but are not loaded.
EXPECTED RESULT
All saved entries load.
SOFTWARE/OS VERSIONS
Haruna: 1.9.0 (Flatpak)
Operating System: SteamOS
KDE Plasma Version: 6.7.3
Qt Version: 6.11.1
ADDITIONAL INFORMATION
M3uParser::stringToUrl() calls QUrl::fromPercentEncoding() on the line before
constructing the QUrl. For a file:// URL, the decoded "#" is then parsed as a
fragment delimiter, so the path is truncated:
line: file:///videos/Show %2301 - Title.mkv
path: /videos/Show
fragment: 01 - Title.mkv
localFileToPlaylistItem() then fails its exists() check and drops the item.
Lines that already have a scheme should be passed to QUrl as-is; only plain
paths need decoding. Renaming the files to remove "#" works around it.
--
You are receiving this mail because:
You are watching all bug changes.