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

{Season Title} Renaming Token #6007

Open
1 task done
DroidFreak32 opened this issue Sep 7, 2023 · 2 comments
Open
1 task done

{Season Title} Renaming Token #6007

DroidFreak32 opened this issue Sep 7, 2023 · 2 comments

Comments

@DroidFreak32
Copy link

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Is your feature request related to a problem? Please describe

Due to the nature of how Anime seasons are defined, sonarr might not organize it in an Anime-esque way
For example, different Arcs in a long running anime could be saved as a generic "Season X" which while looks fine, could be more specific.

Describe the solution you'd like

I'd like to request sonarr support additonal TVDB metadata for example:

  1. {TvdbSeasonName} which gets the Name of the season using this API call:

https://api4.thetvdb.com/v4/seasons/{id}/translations/{language}

Example:

"API: https://api4.thetvdb.com/v4/seasons/28012/translations/eng"

{
  "status": "success",
  "data": {
    "name": "Kai",
    "language": "eng"
  }
}

With this we can rename Seasons like Season {season} - {TvdbSeasonName} which translates to Season 2 - Kai

  1. {TvdbSeasonId}
    This I guess can be retrieved from https://api4.thetvdb.com/v4/series/{id}/extended
    https://api4.thetvdb.com/v4/series/79682/extended
    The ID would be in data.seasons.[].id

This can be useful for Jellyfin to recognize using season ID as well similar to [tvdbid-{tvdbid}]

Describe alternatives you've considered

Alternative would be integration to other APIs like anidb but that could break more stuff that it fixes, specially for the normal series

Anything else?

No response

@markus101
Copy link
Member

markus101 commented Sep 8, 2023

To be clear, you want this information so it can be used in file/folder naming?

Does Jellyfin support season IDs in a file/folder name to help identify information about it? I don't see anything about that in their documentation on naming: https://jellyfin.org/docs/general/server/media/shows/

From that same doc:

Season folders shouldn't contain the series name, otherwise Jellyfin can in certain cases (Stargate SG-1 due to the dash and one, for instance) misdetect your episodes and put them all under the same season.

I could see this actually causing issues (depending on the season name) if they parse things incorrectly.

@DroidFreak32
Copy link
Author

DroidFreak32 commented Sep 8, 2023

To be clear, you want this information so it can be used in file/folder naming?

Yes

I don't see anything about that in their documentation on naming: https://jellyfin.org/docs/general/server/media/shows/

Noted.. in that case the 2nd request of {TvdbSeasonId} may not be useful at the moment.

I could see this actually causing issues (depending on the season name) if they parse things incorrectly.

Yes, however that would be when the Season Folder won't start with "Season NN"

If we take a look at a tree like this which matches the proposed Season {season} - {TvdbSeasonName} format:

$ tree -d
.
├── Season 1 - Emperor Pilaf Saga
├── Season 2 - Tournament Saga
├── Season 3 - Red Ribbon Army Saga
├── Season 4 - General Blue Saga
├── Season 5 - Commander Red Saga
├── Season 6 - Fortuneteller Baba Saga
├── Season 7 - Tien Shinhan Saga
├── Season 8 - King Piccolo Saga
├── Season 9 - Piccolo Jr. Saga
└── Specials

10 directories

The result in jellyfin seems perfect. The number of episodes are accurate:
https://ibb.co/5GhfhGK
Please note, I have purposely removed filler episodes from my NAS so the count is not expected to match the tvdb Ep counts for the seasons

This works very well and having this new format available in Sonarr could be appreciated by Anime watchers

@markus101 markus101 changed the title Support for additional {tvdb} tags using tvdb APIs {Season Title} Renaming Token Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants