Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
507 stars 35 forks source link

SmartHistory - Feature Request - Supporting Playlists #24

Closed vivek201 closed 2 years ago

vivek201 commented 2 years ago

Is it possible to support .m3u playlists using SmartHistory? If this could go to the last played file for the playlist, then I think it could work.

Eisa01 commented 2 years ago

I didn't understand, can you clarify?

vivek201 commented 2 years ago

I have created .m3u playlists for a bunch of videos that I want to watch serially. But when I open that playlist with mpv, it always opens the first file in the playlist. So, I was wondering if there was any way that mpv could remember the last played file for that particular playlist file.

I know that the current SmartHistory can remember the last played file but that doesn't work if I open other files after opening that playlist.

Eisa01 commented 2 years ago

I think what you need is a way to bookmark the playlist file, then go to it easily. Will an option to bookmark solve this issue?

vivek201 commented 2 years ago

Yeah, if it will allow me to go back to that same file.

Eisa01 commented 2 years ago

I will be releasing a new powerful script soon (couple of days) that makes bookmarking very simple. It will easily allow you to jump to any specific file.

I'll update you once it is out.

dyphire commented 2 years ago

For now, you can try this script: history-bookmark.lua

Eisa01 commented 2 years ago

I will update the readme later for the scripts, as I am working on updating all scripts also.

Initial release is done, https://github.com/Eisa01/mpv-scripts/blob/master/scripts/SimpleBookmark.lua

Everything is customizable, defaults are however like this:

Arrow Keys to navigate bookmark. Or mouse wheel.

If video is loaded

If no video is loaded

There are more stuff, however the above are the most important things.

So basically bookmark any file you want, and then press B to load your bookmark list.

Let me know if this resolves the issue

vivek201 commented 2 years ago

Yes, this is great! Is there any way I quickly bookmark at a specific slot? Maybe something like Ctrl+1 or something to bookmark the current video at slot 1 and so on.

Eisa01 commented 2 years ago

Glad to hear it. I'll close this then.

For the slots feature you are requesting. I'll be thinking of the best approach to implement slots, while still keeping it simple. Ill see what I can throw at it.

If you have an idea, you can open a new ticket to track the slots feature individually.

Eisa01 commented 2 years ago

Continued in #25