-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Send directory arg to mpv instead of processing in IINA (fixes #4434) #4439
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
Conversation
…stead of expanding its contents in IINA (this allows `iina-cli --mpv-shuffle` to work properly, at least for a single folder arg)
Changes look good, but I think there is another defect lurking. The
But for some reason only |
Well...this is interesting. It seems that This behavior doesn't make sense. Very odd that this wasn't noticed before. I checked some previous commits, going as far as the Maybe it's is a bit scope creepy, but I made another commit which removes the unused array and instead passes the previously unhandled arguments to the mpv core. This will allow |
Yes, odd that this is so broken. The Testing with: low-batt@gag MacOS$ ./iina-cli --shuffle --pip ~/Movies/ The mpv log shows:
Shuffle is working now. I'm thinking IINA should be filtering out the known |
OK. I see now I'm getting pulled deeper into this. Rabbit holes everywhere! 🤣
Yes, you're right. The IINA args should be processed before the mpv args, and should not be passed to mpv. I see that een with my fix, they are not. I think I should back out my |
Agree. The problem with mpv options can be a separate issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and iina-cli --mpv-shuffle
is working now.
Thanks! |
Description:
This simple change checks if there is only one path arg given, and if that path arg is a local directory. If true, sends it to mpv to process instead of processing it directly via IINA's code. This allows
iina-cli --mpv-shuffle
to work properly, at least for the case where there is only one path arg given. This should provide a workable solution for most users. (If one were to try implementing this for multiple path args and allow for fully compatibility with mpv while not breaking IINA's directory loading features, it looks like larger structural changes would be needed).