Skip to content

Add Recursive Directory search options, and simplify shuffle behavior#248

Open
Jadrie wants to merge 9 commits intovzhd1701:masterfrom
Jadrie:patch-1
Open

Add Recursive Directory search options, and simplify shuffle behavior#248
Jadrie wants to merge 9 commits intovzhd1701:masterfrom
Jadrie:patch-1

Conversation

@Jadrie
Copy link
Copy Markdown

@Jadrie Jadrie commented Jan 27, 2025

I wanted to be able to include subdirectories when I set a folder to repeat, so added some extra logic with a VideoNavigator class- this now grabs the full file list of the directory and all subdirectories, and if shuffle is requested, will shuffle the list once at that time.

This change to the shuffle behavior prevents repeats from happening as easily, as we're not doing a shuffle every time a new video is loaded, which could move the same video to the top of the sibling list multiple times in a row.

Adjust Shuffle to include subdirectories, and resolve an issue with previous file looping back to the first file rather than the last.
Correct Case
Corrected subdirectory travel looping by adding an original_dir that references the parent dir from the first file.
Swapped Video Navigation to a class, so the index persists on initial load of a video
rewired video switching to use navigator class
also removed shuffle_video command, as shuffle is handled on initial video load rather than every new video.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant