-
Notifications
You must be signed in to change notification settings - Fork 588
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
feat: added support for ani-skip to skip episode intros #1231
Conversation
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.
You did a nice job implementing the feature in a way that's consistent to the other parts of the script. There's just one thing missing: ani-skip install instructions in the readme. There should be a reference to their instructions with some description on what it does
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.
Very nice implementation.
I have nothing to add to the review by @Derisis13
Hi, I am opening a pull request to include the ani-skip directly into It would be nice, If this PR is merged first. I'll only have to replace the function. |
I've also wrote a lua script for vlc player. VLC is not as flexible as MPV, We'll need to find a suitable way to pass in options or hard-code them. |
Before you accept this pr, it would be better if you add ani-skip onto the features and the dependency requirements. Additionally, warn windows users as I get |
I'll include the code directly into ani-cli script, you won't have to install ani-skip explicitly |
I'm against including lines of code instead of an available solution: just as we outsourced our ui to fzf and rofi, I see no point in re-implementing ani-skip. The reason is we have to maintain our code, but dependencies take care of themselves. This PR looks fine as is. |
This is welcome once the PR is merged |
…, sorry – made some more changes as well, sorry again
Sorry about the thousend commits on the readme, it's definitely to late to work now ... haha.
I did update the README as well, I've put everything under the dependencies section (should be fine I guess).
I added a warning to the ani-skip description. I should work under Android and MacOS right? (Not shure about iOS though.) |
I can test mac compatibility tomorrow, code and readme looks good. |
it's 27 lines of shell scripting and another 27 lines of lua. Since we can't include the lua scrip anyway I'd leave ani-skip in the hands of its current maintainer. |
Yes, lua scripts are another issue. |
Pls add the copying of |
@synacktraa also pls implement skipping for outro as well |
I haven't tested ani-skip with ani-cli yet, been just resolving ani-skip issues |
my bad, it looks like it does discard the (n episodes) however it seems that u try to match the exact title name in the mal results. this however will more than likely not work for anime with >1 seasons and those which are named differently in allanime |
Tell me if you're modifying ani-cli, else I'll do something with ani-skip |
Someone will have to first take me through |
ani-cli
Outdated
@@ -1,6 +1,6 @@ | |||
#!/bin/sh | |||
|
|||
version_number="4.6.2" | |||
version_number="4.7" |
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.
version_number="4.7" | |
version_number="4.7.0" |
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.
sorry, my bad, is done.
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.
3 digit version number please
Here you go. synacktraa/ani-skip@657a1de @71zenith |
I plan to merge and release sometime later today |
Looks good and works on my end Needs sign off from @Derisis13 due to requested changes |
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 is good, readme is a bit too verbose. Sorry for going back and forth on this, my goal is not to need to update the readme if ani-skip changes their installation method (eg. gets packed as an aur package) and to be in line with the current readme. The way it is now sticks out like a sore thumb
Code is still good, tested and works.
…p to dependency list
Imma test some stuff with windows and WSL. |
ani-skip is working in Wsl |
I am on Manjaro, not sure if that affects but getting the following output for ani-skip and one piece, am I doing something wrong? I tried the same with this PR as well but didn't see any skip so tried to do this.
|
update ani-skip once. |
works nicely (would have preferred to run it in background) |
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.
Totally didn't just forgot this
) Co-authored-by: Aaron Züger <[email protected]>
For any windows users that setup ani-cli with scoop, the likely best way is to use scoop to create a shim for ani-skip as well. step 1 step 2 Scripts folder autoruns any lua files in it so we can ignore the "--script=$HOME/.config/mpv/scripts/skip.lua" component of the ani-skip output as mpv will ignore it (with an error message saying file not found). Otherwise if you'd like to have the script elsewhere you can edit the ani-skip's 4th line from the scoop install to be a windows folder path instead. |
Pull Request
Type of change
Description
I saw the issue #1223 and sympathized with the idea of skipping intros.
So implemented the skipping function into ani-cli (it still needs ani-skip to be installed though.)
Skipping does not work for all anime I've tested, but does for some.
If ani-skip fails, ani-cli just prints a message stating, that it failed and proceeds as normal.
Also it only works with mpv (due to how ani-skip works) and this is noted in the help function as well as the man page.
Checklist
-c
history and continue work-d
downloads work-s
syncplay works-q
quality works-v
vlc works-e
select episode works-S
select index works-r
range selection works--dub
and regular (sub) mode both work-h
help info is up to dateAdditional Testcases