Page 1 of 1

Plex TV Series Naming with Year

Posted: 14 Oct 2021, 21:25
by milopalmer
It appears the TV Series first air year isn't automatically included in the {plex} binding. I'm wondering if this is on purpose or an oversight, given that Plex recommends including the year on the series folder and filename?

Re: Plex TV Series Naming with Year

Posted: 15 Oct 2021, 03:29
by rednoah
milopalmer wrote: 14 Oct 2021, 21:25 It appears the TV Series first air year isn't automatically included in the {plex} binding. I'm wondering if this is on purpose or an oversight, given that Plex recommends including the year on the series folder and filename?
The Name (Year) recommendation refers to TV Shows where the series name literally includes the year in the official series name, thus making each series name / series folder name globally unique and unambiguous.

e.g.
* Doctor Who ➔ the name is "Doctor Who", the year is 1963
* Doctor Who (2005) ➔ the name is "Doctor Who (2005)", the name is not "Doctor Who", the year is 2005


:idea: If you want to enforce Name (Year) for all TV Shows (for better or worse, depending on your software and chosen database) then you can use {emby} instead of {plex}. {emby} just so happens to work the way you want by default.


:idea: If you are using a newer version of Plex, then you'll want to use {plex.id} to add the numeric series ID to each folder name, which is much more useful than Name (Year) for identification purposes.


:idea: Please read the {plex} format documentation for details.

Re: Plex TV Series Naming with Year

Posted: 15 Oct 2021, 04:19
by milopalmer
Thanks for the emby tip!

Per Plex,
If you are using the “Plex TV Series” agent, you can optionally include the TMDB or TVDB show ID in the folder name to improve matching. If you choose to do that, it must be inside curly braces: ShowName (2020) {tvdb-123456}
Sounds a little different than your POV. Obviously if the ID is included, the year is redundant. Just thinking the blasic {plex} should include the year, as that seems to be the baseline.

Re: Plex TV Series Naming with Year

Posted: 15 Oct 2021, 04:36
by rednoah
That likely depends on your chosen agent and agent version. Doctor Who (1963) explicitly does not work for any HTPC software that uses the folder name to search on TheTVDB. {plex} cannot be changed for this reason alone, but commonly used bindings changing their behaviour is generally frowned upon and so the argument for change would have to be very convincing.


:idea: The Plex TV Series agent is brand new (and it is unclear if it is based on TheTVDB, or TheMovieDB/TV, or both, or neither) and so it's possible that {plex} (in combination with your chosen database and language preferences) isn't perfectly optimized for that, and that perhaps {emby} works better for certain corner cases. But I'm not yet aware of any specific example file paths where that is actually the case.

Re: Plex TV Series Naming with Year

Posted: 15 Oct 2021, 04:48
by milopalmer
I see your point. Sounds like nothing is perfect, but close enough most of the time. Thanks for the feedback!

Re: Plex TV Series Naming with Year

Posted: 15 Oct 2021, 04:55
by rednoah
milopalmer wrote: 15 Oct 2021, 04:48 Sounds like nothing is perfect, but close enough most of the time.
Well, I'd say that {plex.id} is pretty perfect if you're using Plex and the new Plex TV Series agent so I'd go with that if you don't mind numbers in the file path. But please do report back if you actually run into any specific issues with one file or another. ;)

Re: Plex TV Series Naming with Year

Posted: 22 Mar 2023, 01:14
by milopalmer
Reviving this thread with a question about getting duplicate years in folders and filenames with the following expression:

Code: Select all

{n} ({y}){" {tvdb-$id}"}/{'Season '+s00}/{n} ({y}) - {s00e00} - {t} -...
Some shows include the year in title, such as Perry Mason (2020). With the above expression the output is Perry Mason (2020) (2020)... Is it possible to omit the redundant year while including it for all the shows that don't include the year in the show title?

Re: Plex TV Series Naming with Year

Posted: 22 Mar 2023, 02:05
by rednoah
You can use {ny} and have FileBot take care of the Name (Year) pattern including all corner cases:

Code: Select all

{ny}

Code: Select all

Perry Mason (2020)

You can use the {emby.id} format to have FileBot take care of everything:

Code: Select all

{emby.id}

Code: Select all

TV Shows/Perry Mason (2020) {tvdb-363026}/Season 01/Perry Mason (2020) - S01E01 - Chapter 1



The Episode Bindings viewer is your friend:

Image

Image

Re: Plex TV Series Naming with Year

Posted: 28 Sep 2023, 02:53
by milopalmer
It seems there's been some drift on emby binding. What's the recommended pattern to include TV Show year along with TVDBID within {} per Plex guidance?

Re: Plex TV Series Naming with Year

Posted: 28 Sep 2023, 04:02
by rednoah
milopalmer wrote: 28 Sep 2023, 02:53 It seems there's been some drift on emby binding.
What's the drift?


:idea: Note that the recommend format is {plex.id} nowadays. Adding the year is not necessarily for series identification if you already have the series ID in the folder name. Though you could just want the year because you want it for yourself even if it doesn't do anything for Plex.



EDIT:

I see, you probably mean the [tmdbid=18165] pattern in the {emby} binding which has indeed changed to follow the Emby naming specification. Unfortunately, there's no longer an easy way to have "plex but with year" at this point. We might need to find a different solution for this use case if it is indeed needed. You can always have your own format though.



EDIT 2:

FileBot r10069 adds {plex.year} for this kind of use case.

Re: Plex TV Series Naming with Year

Posted: 28 Sep 2023, 20:29
by milopalmer
Thanks for adding {plex.year}! That permanently solves it for me.

Re: Plex TV Series Naming with Year

Posted: 21 Oct 2023, 23:35
by cheaters
@milopalmer

Do you know how to build or download r10069? I imagine it's hosted on GitHub?

Re: Plex TV Series Naming with Year

Posted: 23 Oct 2023, 03:18
by rednoah
cheaters wrote: 21 Oct 2023, 23:35 Do you know how to build or download r10069?
:arrow: :arrow: Latest Beta Revisions and Release Candidates