ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

Check if the anime episode is downloaded (via the filename) before checking links

Open zothyy opened this issue 7 months ago • 6 comments

Is your feature request related to a problem? Please describe. n/a

Describe the solution you'd like i propose to check the downloaded anime before it even connects to the internet, i understand that this may interfere with the part of the script that checks and compares the files(and renames if they are the same filename), but i feel like that would have a lot less use cases than this feature

Describe alternatives you've considered could also add this via a flag or make the other feature a flag

Additional context i use ani-cli in a small script that gets my mal details, and it takes a lot longer than it would otherwise if it has to get the files for every episode

zothyy avatar Apr 26 '26 02:04 zothyy

Ani-cli cannot play downloaded files, so I'd say this is out-of-scope. Use the integrated history for tracking your progress, or if you wish to build a more complex workflow, wrap the script (as you did)

Derisis13 avatar Apr 26 '26 11:04 Derisis13

it doesn't need to play the downloaded files for this to work, it just needs to check the filename

zothyy avatar Apr 26 '26 17:04 zothyy

@Derisis13 as I understand it @zothyy means that when resuming an interrupted download it should check per EP if that EP is already downloaded. That would make sense, but should already be covered by aria2c default behavior

port19x avatar May 06 '26 06:05 port19x

sorry let me explain it a bit better;

currently(from what i can see): when it goes to download something, it first fetches the links for youtube sharepoint etc, and then checks if the anime has already been downloaded

i want it to: check if the episode has already been downloaded via the filename, and then get the links and download if it hasn't been downloaded already

its just changing the order of how things are done so that it goes a bit faster (since the anime are already seemingly renamed to all have the same format: "anime name" episode 1, 2 etc.)

zothyy avatar May 08 '26 12:05 zothyy

unfeasible because downloads are just another player in ani-cli and this would turn the standard control flow on its head

port19x avatar May 08 '26 13:05 port19x

kk ill do it w mal ig, sorry for wasting time

zothyy avatar May 08 '26 13:05 zothyy