Code Monkey home page Code Monkey logo

Comments (13)

Codixer avatar Codixer commented on September 25, 2024

So as an example, /anime/<showname>/<season>/<episode>

from anipy-cli.

sdaqo avatar sdaqo commented on September 25, 2024

Yes that is possible,

  1. open your config file, located here: anipy-cli --config-path
  2. modify download_name_format like this:
download_name_format: '{episode_number}'

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

:O

from anipy-cli.

sdaqo avatar sdaqo commented on September 25, 2024

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>

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

oh yeah that is fair, I somewhat bypass it with the following:
download_name_format: '{episode_number}. {show_name} - ({type})'

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

Since I use Jellyfin to watch everything

from anipy-cli.

sdaqo avatar sdaqo commented on September 25, 2024

Maybe try activating this option, this should merge the different seasons into one show, if they are all recognised by jellyfin/your plugins
image

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

Oh that works how I intended it to, the episode number just needs to be first

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

I just work the location of the season into the command
anipy-cli -D --location "/opt/anime/storage/My Hero Academia/Season 2" --ffmpeg

from anipy-cli.

sdaqo avatar sdaqo commented on September 25, 2024

Well I guess that works. If it works for you, just close the issue!

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

Is it possible to remove the additional folder it creates?

from anipy-cli.

Codixer avatar Codixer commented on September 25, 2024

Or is the /anime/<showname + season number>/ a requirement?

from anipy-cli.

sdaqo avatar sdaqo commented on September 25, 2024

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

from anipy-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.