ani-cli
ani-cli copied to clipboard
feat: Add Celluloid support (with ani-skip)
Type of change
- [ ] Bug fix
- [X] Feature
- [ ] Documentation update
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.lua to the scripts folder under ~/.config/celluloid/scripts/ instead of ~/.config/mpv/scripts/.
Checklist
- [X] any anime playing
- [X] bumped version
- [X] next, prev and replay work
- [X]
-chistory and continue work - [X]
-ddownloads work - [X]
-ssyncplay works - [X]
-qquality works - [X]
-vvlc works - [X]
-eselect episode works - [X]
-Sselect index works - [X]
-rrange selection works - [X]
--skipani-skip works - [X]
--skip-titleani-skip title argument works - [X]
--no-detachno detach works - [X]
--duband regular (sub) mode both work - [X] all providers return links (not necessarily on a single anime, use debug mode to confirm)
- [X]
-hhelp info is up to date - [X] Readme is up to date
- [X] Man page is up to date