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

Add season number on the downloaded .mp4 for easier sorting

Open fr3e1 opened this issue 1 year ago • 3 comments

On some animes, there are multiple seasons. When downloaded, both season 1 and season 2 mp4 files have the same name for each episode

Please add a feature or at least an option to enable using the full name including the season number.

Current file names: Aggressive Retsuko Episode 1.mp4, Aggressive Retsuko Episode 1.mp4 (season 1 and 2) Preferred file names: Aggressive Retsuko Season 1 Episode 1.mp4, Aggressive Retsuko Season 2 Episode 1.mp4

fr3e1 avatar Jun 15 '25 06:06 fr3e1

i can implement something this but currently ani-cli uses names from api, you will need to pass something like ANICLI_SEASON=X(season number) then it can be to filename otherwise it's too complex atleast for me.

Dhairya3391 avatar Jul 13 '25 17:07 Dhairya3391

I'll refer you to the rename command. Following your example you could do the following.

ani-cli -d -e "1 -1" "aggressive retsuko"
(select season 1)
rename "Aggressive Retsuko Episode " "AggressiveRetsukoS1E" Agg*.mp4
ani-cli -d -e "1 -1" "aggressive retsuko"
(select season 2)
rename "Aggressive Retsuko Episode " "AggressiveRetsukoS2E" Aggressive\ *.mp4

This will leave you with contracted filenames with the correct seasons. I believe you can adapt this code to your file naming convention preference, I like S1E1 personally

port19x avatar Jul 25 '25 10:07 port19x

I really recommend the *arr programs for organizing your media, even if you don't torrent.

Derisis13 avatar Jul 27 '25 14:07 Derisis13