-
Notifications
You must be signed in to change notification settings - Fork 22
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
Browsing the directory #5
Comments
I recommend using the autoload.lua script from mpv for this. (also thanks for the .desktop file issue, I'll address it at some point) |
Thank you, that seems like the best way, I've added the file in ~/.config/mvi/scripts/ directory and it autoloaded, sadly it does not work. (cheers, #4 was fun, it as well might not be integrated, i'm just happy it works in my case) |
It looks like the script only runs when the file you're playing matches any of these extensions, try changing that? |
Thank you, works correctly after adding appropriate extensions, could you probably include modified script in your repo? |
I don't really like the idea of duplicating the script, but I think the mpv people would accept a pull request that makes these changes, if you feel like submitting one. |
We could try, however since MPV is video player, i don't think they'll accept it. Maybe patch file and script would suit you better? |
I'd only accept a patch if they explicitly refused to add these formats. I think it's just as in scope as audio formats. |
Well mpv-player/mpv#6990 got merged, so I guess we could provide instructions on how to use / configure that autoload now? |
It's actually already mentioned in the "Others" section in the README (even though I had never tested that it works for us). Is there something you would add? The script is very much paste and forget |
Well since it got accepted with default presets (images on) not much, maybe
just the default script-opts disabling audio and video files for mvi
purposes.
…On Thu, Oct 3, 2019, 10:05 AM Olivier Perret ***@***.***> wrote:
It's actually already mentioned in the "Others" section in the README
(even though I had never tested that it works for us). Is there something
you would add? The script is very much paste and forget
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5?email_source=notifications&email_token=AAC56OCZL2IDBF7HG7I2UYLQMWRVHA5CNFSM4IXNVPN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHLR5A#issuecomment-537835764>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC56OAPBCIOKYPCJCGGFWTQMWRVHANCNFSM4IXNVPNQ>
.
|
When launching mvi through xdg-open (see #4 ), and the same when launching mvi through cli, it will only play the file(s) we opened.
Usually image browsers do support switching between images (in alphabetical order) in the same directory right away.
I've very naive solution to this, which uses last file from provided arguments and adds whole directory to allow browsing (sincerely from the first file in alphabetical order away)
It would be cool, if the mvi, when launched with single file argument, added whole directory as playlist and switched to file in argument in created playlist appropriately.
I think this would not work well when launched with multiple arguments (disregard if those are files or folders)
My solution:
The text was updated successfully, but these errors were encountered: