fix: missing subtitles when a subtitle label contains ] - #1912
Conversation
The subtitle list was cut at the first ], so a label like [ToonsHub] hid the English track for some episodes.
|
Current Ani-Cli
(Episode 3, 7 missing subtitles)
After applying Patch of @U-L-M-S
(Fix worked, All subtitles are present) |
Thanks. let's see what the moderators have to say about it :) |
|
|
|
Also you don't need to explain every line using a comment. |
|
Btw idk if it would be possible for you; you could add this after line no. 526: |
I'm not sure if I undertood what you mean here. Do you mind giving me a Suggested Change pls ? on the top just click on "Files changed", then select the line by pressing "+" on it and add your suggestion as code. So we can all undertand it better 😄 If you also add WHY on it, I can undertand it much better |
Oh sorry. I meant, the change I just suggested, it adds a "-a" flag to the ani-cli command. so when you execute it, it downloads all the episodes of the anime you selected. on #1903 , someone suggested it to be added and the moderator said to use -e "1 -1", so i thought it would be good to add a -a/--all-download flag, that calls the -d flag and -e "1 -1". You can test it, I've already tested it in the machine. Line no. 526 is where -d flag code ends, and Line-57 is where the -d flag info is. I'll do as you said on the add suggestion. |
| -c, --continue | ||
| Continue watching from history | ||
| -d, --download | ||
| Download the video instead of playing it |
There was a problem hiding this comment.
| Download the video instead of playing it | |
| -a, --all-download | |
| Download all available episodes |
ahh okay.. I got it !!! nice idea. but try it it anyway pls. Open a new Issue, add the tag as "feature request" and the create a PR explaning how and why :D |
well i guess, but every time you use |
|
I have rejected your feature request previously, Meowhecker. Please abstain from the "-a" flag. |
|
I was able to reproduce the issue and the fact that this pull request does indeed solve it. |












Type of change
Description
Fixes #1910.
The subtitle list was cut at the first
]. Labels like[ToonsHub]contain one, so the English track behind it was lost and no.vttwas downloaded. The list is now cut at}], where it really ends.Tested: all 12 episodes of the reported anime get their subtitle, master misses episodes 3 and 7.
Checklist
-chistory and continue work-ddownloads work-e(select episode) aka-r(range selection) works-Sselect index works-qquality works-ssyncplay works (not installed)-vvlc works (not installed)--duband regular (sub) mode both work--nextep-countdowncountdown to next ep works-hhelp info is up to date