Scan subfolder
Heraes-git opened this issue · 5 comments
Hello,
Given that for hard-drive management purpose we are all driven to sort things in folders, a sub-folders scanning would be highly appreciated.
Also, the possibility to link to nodes that are outside the actual scope would help to gather different locations that can be scattered around a hard-drive without possibility to be children of the same parent.
Ex :
- D:\folder1\folder2\folder3
- E:\folder4\folder5
- F:\folder6\folder7\folder8\folder9
- etc...
This would require a CFG to run the project instead of simply copying it in a folder where it's supposed to collect videos from. (and thus, it would be managed as a real program that we could install anywhere, like in C:\Program Files).
Definitely could add the subfolder scanning.
I'm not sure if I'm going to attempt getting videos from external locations. But you could always edit the output HTML file and add more files if there are just a few video or you could re-run the program in each location and merge the arrays from each file into one.
Ok I'll take the idea of merging the arrays, until we have a solution. Thanks for the quick answer ;)
By the way (and to avoid creating another topic) :
- Does your program "update" the playlist if we add more videos in the folder(s) even if the playlist hasn't been fully played ?
- How does it cycle when the playlist is finished ? Do you propose a loop feature ?
- IIRC (been a while since i worked on this) when the playlist runs out it generates a new, randomly sorted, playlist. You'd need to re-run the generator to create a new HTML file with the new files in it first. (The reason the generator exists is because of the limitation of JS to read your local files so they cannot be added automatically by the JS/HTML file itself)
- Loop is the default behavior i believe. When it's at the end of the playlist it should generate a new, randomly, sorted playlist (it will avoid playing the same video back-to-back too)
@jaredkotoff Ok thank you ! ;) I appreciate.
By the way : I was thinking of improving your project by creating a kind of configuration file, for users to specify different paths to scan. I was also thinking about an interface to create different "profile" of HTML files, allowing users to select one and generate the HTML at a specific moment so they can litterally "program" their TV. Of course we could also simply create different HTML at different locations manually, but the concept was interesting to me and I was seing it as a "TV programmation hub", with buttons to select a program (a TV with a corresponding HTML), buttons to refresh folders, to add folders, etc, and finally "GENERATE" one HTML. Or even the possibility to activate one or more TV at the same time and generate several HTML managed byt several scenes in OBS.
I'm not a Javascript master, but as soon as I have time I'll take a look and see what I can do ;) Thanks again, your project is very important for the future of my channel on Twitch. Bless you 👍