Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Anime profile support for Movies. #360

Open
1 task done
Middlepepper opened this issue Mar 26, 2023 · 11 comments · May be fixed by #945
Open
1 task done

[Feature Request] Anime profile support for Movies. #360

Middlepepper opened this issue Mar 26, 2023 · 11 comments · May be fixed by #945
Labels
awaiting triage This issue needs to be reviewed enhancement New feature or request

Comments

@Middlepepper
Copy link

Description

Can you provide support for anime profiles with Radarr?

Currently there is no option to allow for an "Anime" Profile in the Radarr Server screen. The Main as is just so it select a seperate library or profile if the ANIME_KEYWORD_ID = 210024 is found on themoviedb

Desired Behavior

Having the following options enable for Radarr instance and apply if ANIME_KEYWORD_ID = 210024 is detected on themoviedb for a requested movie.

Anime Quality Profile
Anime Root Folder
Anime Language Profile
Anime Tags

Additional Context

This might be related to issue #195 but I think the callout here is slightly different.

Code of Conduct

  • I agree to follow Overseerr's Code of Conduct
@Fallenbagel
Copy link
Owner

I currently have a webhook script that can do this.
https://github.com/Fallenbagel/seerr-route
For the meantime you could try that

@Middlepepper
Copy link
Author

Well I was not expecting that quick of a reply. Thank you! I'll give this a try So if I spin this up on say python /path/to/Seerr-Route.main.py & it'll just run in the background and flip any request per the "rootFolder" set for the values?

@Fallenbagel
Copy link
Owner

Fallenbagel commented Mar 27, 2023

Well I was not expecting that quick of a reply. Thank you! I'll give this a try So if I spin this up on say python /path/to/Seerr-Route.main.py & it'll just run in the background and flip any request per the "rootFolder" set for the values?

As long as you set the api keys and the jellyseerr url and the rootfolder paths yes. (Sorry I have not had time to modularise and keep the config in a seperate file with an easier to configure manner )

To test you could try requesting from a user that doesn't have advanced request permissions and watch as it changes rootfolder c:

EDIT: (I have notifications set through ntfy when it changes rootfolder and see it just changed it. For contexr, my default rootFolder on radarr is in a folder that ends with ***/movies and not Animemovies)
Screenshot_20230327_053056_ntfy.jpg

@Middlepepper
Copy link
Author

Perfect that should work just fine for me for the moment, I'll pay around with it on a test user like you suggested.

@luckycold
Copy link

Would support for different quality profiles be possible too? I see no workaround for this use case. I use Trash Guides and one of the aspects to it is that there's a specific profile for Anime. I don't think your script does this, unfortunately.

@Fallenbagel
Copy link
Owner

Would support for different quality profiles be possible too? I see no workaround for this use case. I use Trash Guides and one of the aspects to it is that there's a specific profile for Anime. I don't think your script does this, unfortunately.

That script is supposed to be an example. The api endpoints of jellyseerr is what the script uses and it can be modified to do exactly that too. I could make a seperate branch that changes quality profiles too later this weekend

@luckycold
Copy link

That script is supposed to be an example. The api endpoints of jellyseerr is what the script uses and it can be modified to do exactly that too. I could make a seperate branch that changes quality profiles too later this weekend

I'll go ahead and try my hand at modifying it. This is my first time doing this kind of thing. So, I'll give an update this weekend if I couldn't figure it out.

@luckycold
Copy link

luckycold commented May 18, 2023

I ran into too many issues for this. I'm out of my depth on this, since I can't even get it to run at all, let alone getting it to work for my purposes.

@Fallenbagel
Copy link
Owner

Fallenbagel commented Nov 11, 2023

Duplicate #232

Nevermind. I misread

@Fallenbagel Fallenbagel reopened this Nov 11, 2023
@Fallenbagel Fallenbagel added enhancement New feature or request awaiting triage This issue needs to be reviewed labels Nov 11, 2023
@nado
Copy link

nado commented Nov 15, 2024

While trying to automate it on my side, I discovered radarr/sonarr support "Custom Script" for a long time, if anyone needs it here is the script I made for movies (almost identical for series).
Sonarr has "Anime" in its genres but not radarr, hence the use of OriginalLanguage coupled with the Genre Animation to identify animes.

My tags are applied by the sonarr/radarr Autotagging system so I dont modify them with this script.

#!/bin/bash

OnMovieAdded() {
    local baseurl="http://localhost:7878/api/v3"
    local apikey="xx"

    if [[ "$radarr_movie_genres" =~ "Documentary" ]]; then
        if [[ ! "$radarr_movie_path" == "/data/share/videos/documentaries" ]]; then
            curl -i -s -X 'PUT' "$baseurl/movie/editor" \
                -H "X-Api-Key: $apikey" \
                -H 'accept: application/json' \
                -H 'Content-Type: application/json' \
                -d "{\"movieIds\": [ $radarr_movie_id ], \"rootFolderPath\": \"/data/share/videos/documentaries\", \"moveFiles\": true}"
        fi
    elif [[ "$radarr_movie_genres" =~ "Animation" ]]; then
        case "$radarr_movie_originallanguage" in
            jpn | zho | chi | kor)
                curl -i -s -X 'PUT' "$baseurl/movie/editor" \
                    -H "X-Api-Key: $apikey" \
                    -H 'accept: application/json' \
                    -H 'Content-Type: application/json' \
                    -d "{\"movieIds\": [ $radarr_movie_id ], \"qualityProfileId\": 10}"
                ;;
        esac
    fi

}

case $radarr_eventtype in
    Test)
        ;;
    MovieAdded)
        OnMovieAdded
        ;;
    *)
        echo "Unhandled event type: $radarr_eventtype"
        ;;
esac

@Middlepepper
Copy link
Author

Thank you for sharing that script, this helps me slimdown my docker compose and is easily expanded.

@gauthier-th gauthier-th linked a pull request Dec 19, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage This issue needs to be reviewed enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants