ani-cli
ani-cli copied to clipboard
feat: allow -c to continue from dub
Pull Request Template
Type of change
- [ ] Bug fix
- [x] Feature
- [ ] Documentation update
Description
This is a POC for #1371. It adds a sub/dub column in the history file so -c knows whether to continue subbed or dubbed.
It is not thoroughly tested.
It should work with old history files (without the sub/dub column).
The current behavior (in this PR) is so that if you switch between subbed and dubbed, the history file should reflect the latest switch.
If we want to track subbed and dubbed separately, a change can be added to allow for that.
Checklist
- [x] any anime playing
- [x] bumped version
- [x] next, prev and replay work
- [x]
-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 - [ ] all providers return links (not necessarily on a single anime, use debug mode to confirm)
- [ ]
-hhelp info is up to date - [ ] Readme is up to date
- [ ] Man page is up to date
Additional Testcases
- The safe bet: One Piece
- Episode 0: Saenai Heroine no Sodatekata ♭
- Unicode: Saenai Heroine no Sodatekata ♭
- Non-whole episodes: Tensei shitara slime datta ken (ep. 24.5, ep. 24.9)