Playlist Cleaner

VLC Extensions

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

4
Become a Fan
6.3

Description:
Playlist Cleaner is a LUA extension for VLC which checks the active playlist for files that are duplicates, deleted, or otherwise moved; and if so, removes them from the playlist. This prevents you from seeing "VLC file not found" errors. I could not find any addons along these lines for VLC, so I decided to make one myself. This is my first routine in LUA so advice or suggestions for improvement would be appreciated.
Last changelog:

V1.0 (11/15/2012) : First release.
V1.1 (11/27/2012) : Noticed script was accidentally removing directories from the playlist, updated it to only remove items when the I/O error code returned is "File/Folder not found."
V1.2 (12/31/2013) : Added support for cleaning out duplicate files in the playlist. Added a simple interface to control what to clean up from the playlist.


Ratings & Comments

17 Comments

fragonard

10 Forgot to rank.

fragonard

MAGIC!! Thank you!

fragonard

Does it remove duplicate entries in the playlist or duplicate files? My playlist has gone huge and slow because each entry was somehow duplicated.

fragonard

Sorry. Found the answer. It works! Thank you!

manuelusin

9 9 excellent

ironswalt

Great extension, thanks! I had duplicates in my list that had different encoding in the path so this extension didn't pick them up. Making the following change allowed this extension to pick up those duplicates too: On line 48: if fileset[v.path] then change to: if fileset[unescape(v.path)] then and similarly on line 52: fileset[v.path] = 1 change to fileset[unescape(v.path)] = 1 Hope this helps other peeps out there :)

manuelusin

Thx

lukegm

If you want to use this extension on Linux (I'm using Linux Mint 19), then you might need to make this small change. On line 68: local pathval = string.gsub(filepath, "file:\/\/\/", "") change to: local pathval = string.gsub(filepath, "file://", "") If you're using linux and the extension isn't visible in "Plugins and extensions" after you've installed it, then you may want to try this change. To confirm, enable VLC logging then restart VLC. If you have the below error message in your logs, then you probably need to make the change. "Error loading script /usr/lib/x86_64-linux-gnu/vlc/lua/extensions/155249-playlist.lua: .../x86_64-linux-gnu/vlc/lua/extensions/155249-playlist.lua:68: invalid escape sequence near '\/'" I hopes this helpful.

brianwhen

Line 72, after io.open line, I added: if file~=nil then file:close() end it seems to work better for me

MiniJack

I cant get the plugin to show up in the View menu on Arch Linux? Does the plugin support Linux? If not will it ever?

fragonard

I've downloaded it. I try to double click... no way to open it, says computer. Doesn't recognize this type of file. How do I import it to VLC? My playlist is multiplying entries at an alarming rate!

basaquer

You would want to drop the file in your VLC folder, in the subfolder \lua\extensions Playlist Cleaner will show up the next time you open "VLC" under the View menu, click on "Cleans orphaned and duplicate tracks from the playlist."

fragonard

Thanks very much!

TheAlphaRaptor

2.1.3 crashes every time i try to use the plugin.

basaquer

I'm without a laptop right now, but I'm really sorry that's happening for you. I will try to take a look at it when my situation gets sorted out in the next week or so.

JFord

Still crashing. Would be a very useful addon for me if it worked.

direndd

It works fine! tHANK yOU!

Pling
0 Affiliates
Details
license
version
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 5

Other VLC Extensions:

product
Multiple VLC enhancments
tubh
last update date: 13 years ago

Score 4.9

product
TUNE IN RADIO
willyboy63
last update date: 12 years ago

Score 5.0

product
Etevaldo Scopel
etevaldo
last update date: 12 years ago

Score 4.7

product
VLsub 0.9
nonkelleo
last update date: 12 years ago

Score 4.1

product
IP Webcam
manonlatramee62
last update date: 12 years ago

Score 5.1

product
TandN Co LLC
tandnone23
last update date: 10 years ago

Score 5.7



System Tags