Closed sebastian-65 closed 1 year ago
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.
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.
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.
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.
I haven't encountered problems with Q quit-watch-later
outside of forgetting to close a playlist with that instead of q
sometimes.
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.
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!
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 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.
How can this scenario be achieved?
Thank you in advance.