Quick Save/Load Playlist Original

VLC Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): https://www.opendesktop.org/p/1154016/

7
Score 63.3%
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 1 year ago

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

9

almilion

8 months ago

9 +100

Report

midnorton

1 year 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

1 year 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

1 year 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

1 year 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

1 year 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

1 year 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

1 year ago

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

Report

drgooch

1 year 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 1 year ago

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

2018-04-17 1 year ago

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

12345678910
2
product-maker almilion Mar 04 2019 9 excellent
+100
product-maker philrj May 11 2018 9 excellent
product-maker Base: 4 x 5.0 Ratings
CaliBoiE
Sep 08 2019
soerenjeworrek
Sep 09 2018
midnorton
Aug 21 2018
arnoldwaswaiga
May 19 2018
philrj
May 11 2018
abanksonem
Mar 13 2018
Dupcys
Feb 06 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
MIT License
version
1.2.0
updated Aug 25 2018
added Jan 04 2016
downloads 24h
1
pageviews 24h 20
System Tags addon mit-license