Skip to content

Commit a561f73

Browse files
committed
configfiles: don't write redirect entries for archive:// playlist paths
With --autocreate-playlist archive:// URLs become the playlist-path, so mpv writes redirect entries for these playlist-paths which make playback resume from them instead of later files in the archive. Write redirect entries them only for the archive filesystem paths to fix this.
1 parent 39f604f commit a561f73

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

player/configfiles.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ void mp_write_watch_later_conf(struct MPContext *mpctx)
372372
// archives of images, e.g. with mpv 1.zip 2.zip and quit-watch-later
373373
// on 2.zip, write redirect entries for 2.zip, not just for the archive://
374374
// URL.
375-
if (cur->playlist_path && mp_is_url(bstr0(cur->filename))) {
375+
if (cur->playlist_path && mp_is_url(bstr0(cur->filename)) &&
376+
!mp_is_url(bstr0(cur->playlist_path))) {
376377
write_redirect(mpctx, cur->playlist_path);
377378
write_redirects_for_parent_dirs(mpctx, cur->playlist_path);
378379
}

0 commit comments

Comments
 (0)