
Quick Save/Load Playlist
Original
Source (link to git-repo or to original if based on someone elses unmodified work): https://www.opendesktop.org/p/1154016/
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 View → Quick Save Playlist to save the current playlist (or VLC → Extensions → Quick Save Playlist in some versions of VLC).
Then, at a later point, click on View → Quick Load Playlist to load it again as many times as you want.
2018-08-25 2 years ago
- Quick Save now doesn't overwrite the saved list if the playlist is empty (thank you midnorton for the idea)
2018-08-25 2 years ago
- Quick Save now doesn't overwrite the saved list if the playlist is empty (thank you midnorton for the idea)
2018-04-17 2 years ago
- Quick Load now resumes the playlist from where it was saved
gui-alberto
9 months ago
Report
almilion
1 year ago
Report
midnorton
2 years ago
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 years ago
Report
Xrott
2 years ago
Report
superbabe
2 years ago
Report
Xrott
2 years ago
Report
deejayollie
2 years ago
Report
Xrott
2 years ago
Report
drgooch
2 years ago
Report