PlaylistSong: recurse after applying base_uri
Allows applying map_to_relative_path() with base_uri.
This commit is contained in:
parent
501f1e6de0
commit
82b4ec22be
|
@ -136,10 +136,10 @@ playlist_check_translate_song(DetachedSong *song, const char *base_uri,
|
||||||
base_uri = nullptr;
|
base_uri = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string full_uri;
|
|
||||||
if (base_uri != nullptr) {
|
if (base_uri != nullptr) {
|
||||||
full_uri = PathTraitsUTF8::Build(base_uri, uri);
|
song->SetURI(PathTraitsUTF8::Build(base_uri, uri));
|
||||||
uri = full_uri.c_str();
|
/* repeat the above checks */
|
||||||
|
return playlist_check_translate_song(song, nullptr, secure);
|
||||||
}
|
}
|
||||||
|
|
||||||
DetachedSong *dest = playlist_check_load_song(song, uri, secure);
|
DetachedSong *dest = playlist_check_load_song(song, uri, secure);
|
||||||
|
|
Loading…
Reference in New Issue