
Add Similar Files From Folder w AutoSort
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
6 years ago
On the console is saying:
[035dc484] lua generic error: Could not activate extension!
Do you know how to fix it?
Report
thiagottjv
6 years ago
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
6 years ago
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
6 years ago
Report
greatdg
7 years ago
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
7 years ago
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
7 years ago
http://www.mindgems.com/products/Fast-Duplicate-File-Finder/Fast-Duplicate-File-Finder-About.htm
Report
Chematronix
8 years ago
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
Chematronix
8 years ago
Quote:
new_item.path = "file:///".. vlc.strings.encode_uri_component(path..file)
Report
PooterTF
8 years ago
Report
Chematronix
8 years ago
Report
shywolf91
8 years ago
Report
PooterTF
8 years ago
Report