Quick Save/Load Playlist Original

VLC Extensions

Source (link to original if based on other people's unmodified work): https://www.opendesktop.org/p/1154016/

6
Score 52%
Description:

These two complementary extensions allow you to save your current playlist and reload it without having to worry about organizing files.
Especially useful when closing VLC but wanting to resume your playlist later.

How To Install:
- download the "quickSave+Load.zip" archive (download button on the right)
- extract the two files inside and put them in the VLC extensions folder (create it, if it doesn't exist):
        for Windows: %APPDATA%\vlc\lua\extensions\
        for Linux: ~/.local/share/vlc/lua/extensions/
        for Mac OS X: /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
- restart VLC

To use, click on ViewQuick Save Playlist to save the current playlist (or VLCExtensionsQuick Save Playlist in some versions of VLC).
Then, at a later point, click on ViewQuick Load Playlist to load it again as many times as you want.
Last changelog:

2018-08-25 2 months ago

- Quick Save now doesn't overwrite the saved list if the playlist is empty (thank you midnorton for the idea)

midnorton

2 months ago

I just modified the trigger function.


function trigger()
local dirSep = package.config:sub(1,1)
local saveFile = vlc.config.userdatadir() .. dirSep .. "quicksave.sav"

local plRaw, pl = vlc.playlist.get("normal").children, {}

if table.getn(plRaw) > 0 then
vlc.msg.info("Saving playlist to '" .. saveFile .. "' ...")

local file, err = io.open(saveFile, "w+")
if not file then error(err) end

for i, v in ipairs(plRaw) do pl[tostring(i)] = v end -- converting numerical to string keys to preserve the order

local sTable = serialize(pl)

local success, err = file:write(sTable)
if not success then error(err) end

file:close()

vlc.msg.info("Playlist saved as '" .. saveFile .. "'!")
end
end

Report

midnorton

2 months ago

I have made a small change to prevent quickSave saving a zero length Playlist. The Apple Magic mouse can be a little twitchy and once or twice I have hit "Save" as I was trying to "Load". If it would be of interest I can upload it if I could work out how.

Report

C

Xrott

2 months ago

Sounds sensible. If the change is not that long, you can just post it here as a new comment and I'll upload a new version.

Report

superbabe

3 months ago

I have the exact same problem. Example: I'm in the middle of episode 3 of my playlist of 10 episodes. I pause the video and click on Quick Save Playlist. I close VLC. I reopen it and click on Quick Load Playlist. It doesn't start from episode 3 where I left off, it starts back at episode 1.

Report

C

Xrott

3 months ago

When saving, make sure not to pause the video while saving as VLC extensions can't access the currently playing media if there is nothing playing.

Report

deejayollie

5 months ago

It works the first time after installing, but keeps resuming playback now for the very first video in my playlist... I have VLC for MAC OSX High Sierra

Report

C

Xrott

5 months ago

Sorry, but could you elaborate a bit, please? What exactly are you trying to do?

Report

drgooch

5 months ago

I think I'm having the same issue. The quick save - quick load feature works just fine, but no matter where in the playlist I was when I saved it (or when I closed the app), quick load always resumes from the start of the playlist, and not the file I was at.

Report

2018-08-25 2 months ago

- Quick Save now doesn't overwrite the saved list if the playlist is empty (thank you midnorton for the idea)

2018-04-17 7 months ago

- Quick Load now resumes the playlist from where it was saved

product-maker philrj May 11 2018

product-maker 6 6

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
MIT License
version
1.2.0
updated Aug 25 2018
added Jan 04 2016
downloads today
0
page views today 40
System Tags addon mit-license