Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Jadrie
Copy link

@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