-
Notifications
You must be signed in to change notification settings - Fork 647
feat: Add Celluloid support (with ani-skip) #1504
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for the dettailed explanation and thoughtful implementation. Then I'll test it myself too, and see if it works. Merging may have to wait until 4.10 is merged too, but maybe we can include the feature in the release. |
|
Thanks for the quick reply. |
f4a016d to
cf48c97
Compare
port19x
left a comment
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.
Code looks good, elegant flag normalisation
| **Note:** To get ani-skip to work under celluloid, copy the `skip.lua` to celluloid's script folder. This is usually `~/.config/celluloid/scripts`. The `skip.lua` file can be found in the root directory of ani-skip's repository if you installed via source, or in mpv's script directory `~/.config/mpv/scripts` if you installed it using the AUR. | ||
|
|
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.
Doesn't this belong in the ani-skip documentation instead?
|
No detach with celluloid is kinda stupid since its a gui program. |
|
Note that I removed your manpage notice that |
|
Just a minor warning: some distros (Fedora) like to package celluloid (like mpv) with URL playback disabled. Maybe it'd be worth noting in the readme. |
We should definitely note that down somewhere, or even just make a dummy issue that is easily discoverable so anyone running into the issue can be referred to it |
Type of change
Description
Celluloid is a popular MPV frontend. Since celluloid can pass mpv arguments by using a 'mpv-' prefix in the command args, I figured it'd be easy to add. It just uses mpv on the backend after all.
I opted for not adding a new case in the switch, but instead adding the "celluloid" pattern in the mpv option. I then added an optional prefix, which is set if the player is celluloid. It could be done as a seperate option, but I wanted to prevent duplicate code.
I bumped the version to 4.10.0 as I noticed that is what you guys were aiming for in the next release. I checked 'range selection' as working, as you guys are already aware of the pre-existing bug with range selection and it's not related to this PR. The readme and help still mention that --skip only works with mpv, but since celluloid is still just mpv, I thought it was still correct.
Note: To make this work the user would have to copy ani-skip's
skip.luato the scripts folder under~/.config/celluloid/scripts/instead of~/.config/mpv/scripts/.Checklist
-chistory and continue work-ddownloads work-ssyncplay works-qquality works-vvlc works-eselect episode works-Sselect index works-rrange selection works--skipani-skip works--skip-titleani-skip title argument works--no-detachno detach works--duband regular (sub) mode both work-hhelp info is up to date