Closed Codixer closed 4 months ago
So as an example, /anime/\<showname>/\<season>/\<episode>
Yes that is possible,
anipy-cli --config-path
download_name_format
like this:
download_name_format: '{episode_number}'
:O
So as an example, /anime/
/ /
you can not sperate the showname and seasons, you will always have the season in the showname. For example "Mushoku Tensei Season 2", because that is how they are named on the site we scrape.
Edit: It can only be /anime/<showname + season number>/<episode>
oh yeah that is fair, I somewhat bypass it with the following:
download_name_format: '{episode_number}. {show_name} - ({type})'
Since I use Jellyfin to watch everything
Maybe try activating this option, this should merge the different seasons into one show, if they are all recognised by jellyfin/your plugins
Oh that works how I intended it to, the episode number just needs to be first
I just work the location of the season into the command
anipy-cli -D --location "/opt/anime/storage/My Hero Academia/Season 2" --ffmpeg
Well I guess that works. If it works for you, just close the issue!
Is it possible to remove the additional folder it creates?
Or is the /anime/\<showname + season number>/
Well, that is how it currently works. I guess I could put it on my todo list to think about this, especially when using the --ocation
argument.
But you can always work around this with some bash script.
How about running something like this after the download command:
#!/bin/bash
# $1 = path where the anime got downloaded (this is the first argument)
# Move all files from the sub folder in the parent one
mv "$1"/*/* "$1"
# Remove the subfolder
rm -R -- "$1"/*/
Save this somewhere to mover.sh
and do chmod +x mover.sh
So with this you could then run (I am using the -s
flag here to automate it even more, you may omit it):
anipy-cli -D --search "my hero academia 2:1-12:sub" --location "/opt/anime/storage/My Hero Academia/Season 2" --ffmpeg && ./path-to-mover.sh "/opt/anime/storage/My Hero Academia/Season 2"
Edit: fix the script
I'm interested to know if it's possible to format the final filename of a download. For example, if I could have them only have episode number as it's name, and starting to count up from a number (See mushoku tensei as an example why )