Add Similar Files From Folder w AutoSort
VLC Extensions
Score 52%
Description:

A slight alteration to the BRILLIANT work by kempfjb with his/her AddSimilar extension, but with some post-sorting action within VLC and in the table processing.

Do you have sorted folders for your media files? Do you want to have those files play in sequential order automatically? Simply play the first file of your choosing and select this extension - it will find similar files within that folder and automatically add them to the VLC playlist, then sort them by title. So, if you have VideoS01E01.avi through VideoS01E15.avi, it will just keep playing through the files in episode order.

To install, download this lua file and place within your VideoLan application folder under VLC,lua,extensions folder. Then run a video file and select Add Similar With Sort from the View menu.

Here is the link to kempfjb original Add Similar extension: http://addons.videolan.org/content/show.php/Add+similar+files+from+folder?content=140699

thiagottjv

3 years ago

Hi, this isnot working on the current VLC.
On the console is saying:
[035dc484] lua generic error: Could not activate extension!

Do you know how to fix it?

Report

thiagottjv

3 years ago

Hi, I corrected the code to work with the new VLC version.
The problem was caused by the depreciation of the vlc.net.opendir() method.
I used some functions from VLSub and its working now.
How can I send you the code? GitHub?

Report

thiagottjv

3 years ago

I created a fork there, if anyone want to check it out:

https://gist.github.com/thiagottjv/e37ec8c981ec3b5ca6bc

Tested on Windows 8 and VLC 2.1.3.

It will not work on MAC, I cant test it here.
It will probably work on Linux. Test it out.

Report

cnaeus

3 years ago

Will not work with filenames that include the encoder's hash tag ([ftw]-Video-05-[D04B3F1A6].mkv). The workaround is obvious albeit tedius, but I just wanted to put that out there for troubleshooting purposes.

Report

greatdg

4 years ago

If you find a bug or any problem, leave comment below link.

https://gist.github.com/greatdg/dffbf8eed46d70ec338c

1. go to link
2. click download and extract it.
3. copy addSimilarVideo.lua to '.local/share/vlc/lua/extensions'

Report

fiveoak

4 years ago

The file path is messed up on Linux since it's missing an initial / character, so I changed line 103 to

Quote:path = vlc.strings.decode_uri(string.sub(item:uri(), 8 , -(string.find(string.reverse(item:uri()), "/", 0, true))))
This replaces the 9 in the original code with an 8 (so it only strips the file:// not file:///) and it works.

Report

jackdorsey

4 years ago

I use this free tool to Find Similar File Names in windows. Give it a try...it provides impressively good results.

http://www.mindgems.com/products/Fast-Duplicate-File-Finder/Fast-Duplicate-File-Finder-About.htm

Report

Chematronix

5 years ago

Doesn't works in Windows 7 either. Seems it has problems handling Unicode, besides not filtering non-video files:

Quote:
lua debug: [Add Similar] adding: D:/Mis Documentos/Educación/Cursos en línea/Algoritmos - Diseño y Análisis I/Lecciones/3 - 1 - O(n log n) Algorithm for Counting Inversions I (13 min).srt
lua debug: Path: file:///D:/Mis Documentos/Educación/Cursos en línea/Algoritmos - Diseño y Análisis I/Lecciones/3 - 1 - O(n log n) Algorithm for Counting Inversions I (13 min).srt
lua debug: Name: 3 - 1 - O(n log n) Algorithm for Counting Inversions I (13 min).srt
lua debug: [Add Similar] adding: D:/Mis Documentos/Educación/Cursos en línea/Algoritmos - Diseño y Análisis I/Lecciones/3 - 2 - O(n log n) Algorithm for Counting Inversions II (17 min).mp4


File reading failed:
VLC could not open the file "D:\Mis Documentos\Educaci??n\Cursos en l??nea\Algoritmos - Dise??o y An??lisis I\Lecciones\3 - 2 - O(n log n) Algorithm for Counting Inversions II (17 min).mp4". (%m)

Report

C

PooterTF

5 years ago

That's bizarre - I've been using it in Windows 7, both 32 and 64-bit. I use it nearly every day and never got an error.

Report

Chematronix

5 years ago

Does it works for you with non-ASCII characters (p.e. áéíóú) in the path?

Report

Chematronix

5 years ago

Fixed reencoding the path:
Quote:
new_item.path = "file:///".. vlc.strings.encode_uri_component(path..file)

Report

shywolf91

5 years ago

Does this work on mac? How would you use it on mac?

Report

C

PooterTF

5 years ago

Just tried it on my Mac and it doesn't seem to work properly. When activated, it opens a long blank window with nothing but an OK button that doesn't do anything. From everything I read, extension support for VLC on the Mac are still a developing thing.

Report

product-maker Cardellos Jun 22 2012

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated Apr 11 2012
added Apr 11 2012
downloads today
0
page views today 6