Comments (10)
Problem solved in f0191e4.
The pattern for extension list was incorrect: it would add files like
HE1LFxbxSyGBgbQItgd1d71clB4Gs5ICD8mP3BF3.jpeg
or
This_is_not_a_.avi_file.jpeg
I have strengthened the pattern so now it should only detect extension at the end of the filename.
from utils.
Are you on Windows or Linux ?
Can you give me an example of a folder to reproduce the problem ?
Normally the script scan only files with given extension: see
https://github.com/x-hgg-x/Utils/blob/master/VLC%20Create%20playlist%20from%20file/vlc.ps1#L7
or
https://github.com/x-hgg-x/Utils/blob/master/VLC%20Create%20playlist%20from%20file/vlc.sh#L4.
It shouldn't add jpg files the the playlist.
from utils.
Hello. I have looked back again and extensions variable is the same as default or yours link.
I'm using Windows 10 64 bits.
And for some unknown reason those pictures had 00:10 playing time on playlist even though they're just normal pictures without any animation.
Just added a picture to show playlist with those jpeg and jpg pictures added automatically.
from utils.
I have updated the script in a new commit on master, and add a new branch 'test' for debugging output.
Can you take this script:
https://github.com/x-hgg-x/Utils/blob/test/VLC%20Create%20playlist%20from%20file/vlc.ps1
and launch from a terminal with the file you want to open as an argument ?
It should print a list of detected files in the folder before filtering for extension name, and any potential error from the script.
Can you show me the resulting output ?
from utils.
You have an error: it seems the script cannot file the path to VLC.
The script search VLC in the following path: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
(see https://github.com/x-hgg-x/Utils/blob/test/VLC%20Create%20playlist%20from%20file/vlc.ps1#L6).
If you installed VLC to another location, you must change the line and put the correct path to VLC.
from utils.
Just fixed it but does the same behavior with those 2 JPEG and JPG on playlist, excepting I get no more those red messages on cmd. Shows the same file names on cmd too.
from utils.
Can you show the output for the new script:
https://github.com/x-hgg-x/Utils/blob/test/VLC%20Create%20playlist%20from%20file/vlc.ps1
It is better if you copy and paste the output instead of doing a screenshot.
from utils.
AcclaimsFlyingbat-mobile.mp4
BothDangerousdogs-mobile.mp4
CloudyAfreeca-mobile.mp4
Diligenthbulldog-mobile.mp4
DisloyalDirectHogget-mobile.mp4
FlimsyElectric-mobile.mp4
HE1LFxbxSyGBgbQItgd1d71clB4Gs5ICD8mP3BF3.jpeg
lfoJbZk.mp4
RareMeaslyBedbug-mobile.mp4
ucchc2v2y7841 26F5'780kg Having found happiness last year following a devastating and stressful 2018,.jpg
Unnaturalheadbird-mobile.mp4
Wickedadee-mobile.mp4
from utils.
Have you run the last script ?
Normally the script prints these lines:
Files without filtering
Files with filtering
Extensions list
from utils.
I'm sorry for my last wrong response my friend. Does this work as requested ?
Files without filtering
AcclaimsFlyingbat-mobile.mp4
BothDangerousdogs-mobile.mp4
CloudyAfreeca-mobile.mp4
Diligenthbulldog-mobile.mp4
DisloyalDirectHogget-mobile.mp4
FlimsyElectric-mobile.mp4
HE1LFxbxSyGBgbQItgd1d71clB4Gs5ICD8mP3BF3.jpeg
lfoJbZk.mp4
RareMeaslyBedbug-mobile.mp4
ucchc2v2y7841 26F5'780kg Having found happiness last year following a devastating and stressful 2018,.jpg
Unnaturalheadbird-mobile.mp4
vlc.bat
vlctest.ps1
vlctest2.ps1
Wickedadee-mobile.mp4
Files with filtering
AcclaimsFlyingbat-mobile.mp4
BothDangerousdogs-mobile.mp4
CloudyAfreeca-mobile.mp4
Diligenthbulldog-mobile.mp4
DisloyalDirectHogget-mobile.mp4
FlimsyElectric-mobile.mp4
HE1LFxbxSyGBgbQItgd1d71clB4Gs5ICD8mP3BF3.jpeg
lfoJbZk.mp4
RareMeaslyBedbug-mobile.mp4
ucchc2v2y7841 26F5'780kg Having found happiness last year following a devastating and stressful 2018,.jpg
Unnaturalheadbird-mobile.mp4
Wickedadee-mobile.mp4
Extensions list
(.avi|.mp4|.mkv|.m4v|.mov|.mpg|.mpeg|.wmv|.ogg|.flac|.m4a|.mp3|.wav)
Thanks for your time and patience to this point.
from utils.
Related Issues (2)
- Thanks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utils.