mpv-playlistmanager icon indicating copy to clipboard operation
mpv-playlistmanager copied to clipboard

Resuming playlist

Open sebastian-65 opened this issue 2 years ago • 7 comments

How can this scenario be achieved?

  • play some playlist
  • edit playlist (reorder, remove items)
  • quit MPV
  • then open that playlist again (and continue where I left off)

Thank you in advance.

sebastian-65 avatar Sep 20 '21 11:09 sebastian-65

input.conf q quit-watch-later

or

mpv.conf save-position-on-quit

Second one has the benefit of working even if player is closed from gui/other than keybind.

Edit: oh I see you re-ordered playlist. For that you need to save a new playlist. I have considered some option to override existing playlists to improve this usecase.

jonniek avatar Jan 15 '22 11:01 jonniek

Oddly, in mpv.conf save-position-on-quit didn't work for me for playlists (worked for single files), however save-position-on-quit=yes does seem to work for playlists too!

Thank you @jonniek for this wonderful playlist manager! I couldn't use MPV without it.

sebastian-65 avatar Jan 15 '22 12:01 sebastian-65

save-position-on-quit didn't work for me for playlists (worked for single files), however save-position-on-quit=yes

Interesting, seems like this reddit thread agrees. Maybe I have some outdated version where both work consistently. Usually if yes is omitted it should work the same as if it's defined as yes.

jonniek avatar Jan 15 '22 12:01 jonniek

Be aware, that guy posting this reddit thread is me as well :) It can be something wrong on my part, even though I don't know what.

sebastian-65 avatar Jan 15 '22 13:01 sebastian-65

I haven't encountered problems with Q quit-watch-later outside of forgetting to close a playlist with that instead of q sometimes.

FichteFoll avatar Jan 29 '22 01:01 FichteFoll

save-position-on-quit=yes doesn't seem to work for me anymore, it opens playlist from position remembered in some previous session. However I'm unable to figure out why it seemed worked before and what changed.

sebastian-65 avatar Feb 19 '22 16:02 sebastian-65

Interesting! It works only when jumping directly from one file to the next one using "Next button" (or with hotkey playlist-next). This way resuming playlist will work.

However, when I jump to another file through playlist menu and hitting enter, resuming playlist won't pick up the last file. Even though I used playlist-next since then!

sebastian-65 avatar May 10 '22 19:05 sebastian-65

Renaming playlist is now possible with playlistmanager-save-interactive.lua so original usecase can be achieved.

If there is still some bug with save position let's open another issue with reproduction steps.

jonniek avatar Oct 24 '22 10:10 jonniek

@jonniek I'm sorry for a dumb question, but how this script should be used? Is it gonna work right away when download to folder or something should be set up or be done? Thanks in advance!

Just few days ago, I wrote a python script as a workaround to save last played file to be opened again next time and it works fine but it's still a dirty hack that cannot be recommended to others.

sebastian-65 avatar Oct 24 '22 10:10 sebastian-65