1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Compare encoded urls. Fixes issue 2842. Some random tracks are not properly read from the cue sheet after clementine restart

This commit is contained in:
Alexey Bo 2012-11-26 23:07:28 +06:00 committed by John Maguire
parent 875b297278
commit c7be61f11d

View File

@ -206,7 +206,7 @@ PlaylistItemPtr PlaylistBackend::RestoreCueData(PlaylistItemPtr item, boost::sha
}
foreach(const Song& from_list, song_list) {
if(from_list.url() == song.url() &&
if(from_list.url().toEncoded() == song.url().toEncoded() &&
from_list.beginning_nanosec() == song.beginning_nanosec()) {
// we found a matching section; replace the input
// item with a new one containing CUE metadata