Running 2 instances
TheTawnyFool opened this issue · 7 comments
Hi, I was just starting to use your script and was using in multiple scenes in OBS for different things. From what I can see it doesn't seem to support having it be used more in more then one spot due to the way it uses localstorage??
I made it work by manually adding
function getPlaylist() {
let playlist = [];
localStorage.clear(); // THIS IS THE LINE I ADDED
try {
Have you tried this or is it a known issue? I haven't dug into the code yet but I will probably download it and fix the issue. I can do a merge request if you like to have the fix to put into your code. You might want to fix it yourself of course. Or perhaps I am doing something wrong??
Thanks!
It's kind of like this by design. It was requested by a few users so it wouldn't replay the same video before playing all other videos first. It's possible I might add it as an option in the program but for now, what you did is probably going to be the correct solution.
I would recommend the option to name the playlist in the setup then.
I like that idea! Didn't think of that. I probably won't get to it any time soon but anyone is welcome to open a PR if they have any improvements.
I just thought, you could also use the previous version: https://github.com/UpDownLeftDie/obs-random-videos/releases/tag/v3.1.1
It doesn't have the localstorage code for the playlists. Might work the way you need for now. Do think there was any feature changes that you'd notice iirc.
Closing due to staleness