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

Add "Production" and "TV" episode orders to the metadata editor. #6528

Merged
merged 3 commits into from Mar 11, 2022
Merged

Add "Production" and "TV" episode orders to the metadata editor. #6528

merged 3 commits into from Mar 11, 2022

Conversation

oledfish
Copy link
Contributor

@oledfish oledfish commented Sep 7, 2021

Currently, the metadata editor allows episodes from series to pull the TMDB information and be grouped by aired date, absolute order, or DVD order. TMDbLib exposes several more episode ordering schemas yet not all are made available in Jellyfin.

Since the library takes care of fetching the information, this change is as simple as adding the proper options in the server as well as the web client. Corresponding PR for jellyfin-web is here.

string.Equals(displayOrder, "absolute", StringComparison.Ordinal) ? TvGroupType.Absolute :
string.Equals(displayOrder, "dvd", StringComparison.Ordinal) ? TvGroupType.DVD :
string.Equals(displayOrder, "tv", StringComparison.Ordinal) ? TvGroupType.TV :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is TV order?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know it's supposed to be used for shows with episodes that were grouped differently in specific regions, yet unfortunately it's not a very consistent option:

  • Naruto shows a five-season grouping as opposed to other options that show either a four-season grouping or a single season with all episodes lumped in.
  • One Piece has all its episodes grouped into a single season in TV order, while other options are far better organized.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case I think "tv" might be a bad name. Not sure what it should be called though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither do I in that case, the names used by the website are as descriptive as they get.

Copy link
Member

@cvium cvium Sep 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we call it "regional"? Does that make sense?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is not "TV" = "Syndication"? See https://en.wikipedia.org/wiki/Broadcast_syndication
Why not add other types? For example "La casa de papel" (Money Heist) had Season 1 Spain version (aired, 15 episodes) and Netflix version (digital, 22 episodes) with different durations and number.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other types I hadn't added in this PR have obvious names (OriginalAirDate, StoryArc, Digital) so maybe just calling TV "Syndication" would be enough to have all of them?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not list all types and in the same order as here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have pushed a commit listing all the types found in the client API.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using the values provided by the API are sensible, if we rename them then it's on us to come up with better mappings.

@Kaduo
Copy link

Kaduo commented Dec 21, 2021

When multiple episode orders of a same type are available on TMDB for a series (for instance, One Piece has two different "absolute" orders), is there a way to control (or predict for that matter) which episode order will be fetched by TMDBLib?

string.Equals(displayOrder, "absolute", StringComparison.Ordinal) ? TvGroupType.Absolute :
string.Equals(displayOrder, "dvd", StringComparison.Ordinal) ? TvGroupType.DVD :
string.Equals(displayOrder, "tv", StringComparison.Ordinal) ? TvGroupType.TV :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using the values provided by the API are sensible, if we rename them then it's on us to come up with better mappings.

@joshuaboniface
Copy link
Member

When multiple episode orders of a same type are available on TMDB for a series (for instance, One Piece has two different "absolute" orders), is there a way to control (or predict for that matter) which episode order will be fetched by TMDBLib?

I think the question would be how the TMDBLib API returns them, i.e. what is matched to what for this particular edge case. Since this is an addition though, and the existing system is just as potentially ambiguous, I don't know how much we should dwell on it too much in this (simple) PR.

@thornbill thornbill added this to Active PRs in Release 10.8.0 via automation Mar 10, 2022
@joshuaboniface joshuaboniface merged commit 6e80c9b into jellyfin:master Mar 11, 2022
Release 10.8.0 automation moved this from Active PRs to Completed PRs Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Release 10.8.0
  
Completed PRs
Development

Successfully merging this pull request may close these issues.

None yet

6 participants