Keep actual episode title and actual show title using plex format

All about user-defined episode / movie / file name format expressions
Post Reply
kolbdog32
Posts: 20
Joined: 05 Feb 2024, 13:47

Keep actual episode title and actual show title using plex format

Post by kolbdog32 »

Hi am just wondering when you use plex format is there a way you can keep the full episode title from tvdb/tmdb instead of it only showing the episode name since some have values such as ?,!, excetra in the episode title or actual title of show and episode. Thanks in advacne. Since i want to keep using the plex format but i also want to use the actual names on websites for the shows and episodes as well.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Keep actual episode title and actual show title using plex format

Post by rednoah »

Yes. See Plex Naming Schemes › Advanced {plex} operators for details:
rednoah wrote: 12 Sep 2016, 10:03 unix ... {plex} path without file name validation (i.e. allow : colon and ? question mark in file paths)
e.g.

Format: Select all

{ plex.id.unix }

:idea: Even if your custom format generates Windows-invalid file paths, FileBot will still enforce Window-valid file paths on all platforms by default. But you can disable that. See Target Unix Filesystem for details.
:idea: Please read the FAQ and How to Request Help.
kolbdog32
Posts: 20
Joined: 05 Feb 2024, 13:47

Re: Keep actual episode title and actual show title using plex format

Post by kolbdog32 »

That only works for tv show title not the eactual episode title i just tried it
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Keep actual episode title and actual show title using plex format

Post by rednoah »

kolbdog32 wrote: 28 May 2024, 13:44 That only works for tv show title not the eactual episode title i just tried it
:?: Which specific database / series / episode are you testing with?


:idea: Screenshots or Command & Console Output is always helpful. Please read How to Request Help.
:idea: Please read the FAQ and How to Request Help.
kolbdog32
Posts: 20
Joined: 05 Feb 2024, 13:47

Re: Keep actual episode title and actual show title using plex format

Post by kolbdog32 »

It seems it only works for episodes that dont have (1)(2) in episode name but it does work for episodes that have !,?,' in the episode title. so it only works half way. since i tried it on Amazing Digital Circus - Candy Carrior Choaos! and it works for that but it doenst work for episodes with (1)(2) if its a two or 3 parter..
kolbdog32
Posts: 20
Joined: 05 Feb 2024, 13:47

Re: Keep actual episode title and actual show title using plex format

Post by kolbdog32 »

Never mind i figured it out if i do this

Code: Select all

{plex.unix % { " (" + t.match(/[(]([0-9]+)[)]/) + ")" } }
It's exactly like it is on either website the show and episode. So thanks I apprecate it.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Keep actual episode title and actual show title using plex format

Post by rednoah »

{plex} does indeed also remove (1) (2) part numbers. This is unrelated removing ! ? / Window-invalid characters. {plex.unix} will only disable the latter. The former cannot be disabled, but you can - as you have already figured out - add custom information. See Add (1) (2) part numbers to the episode title for details. Alternatively, you can also build your own format without using {plex} if you need more control over all the bits and pieces.
:idea: Please read the FAQ and How to Request Help.
Post Reply