Way to add LANGUAGE only when it isn't English?

All about user-defined episode / movie / file name format expressions
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Way to add LANGUAGE only when it isn't English?

Post by rednoah »

Bexorcist wrote: 04 Feb 2022, 11:01 Any idea how to get the year as (XXXX) behind the movie name?
I see. If you want Name (Year) for TV Series folder names / Episode file names then you can use emby instead of plex which happens to do give you the naming you want:
viewtopic.php?t=4116

rednoah wrote: 12 Sep 2016, 10:03 Emby Naming Standard

The {emby} binding and the {plex} binding work exactly the same, with slightly different implementation details, e.g. series name and series folder formatting.

Code: Select all

TV Shows/Alias (2001)/Season 01/Alias (2001) - S01E01 - Truth Be Told
:idea: If you want {plex.id} but with Name (Year) folders then {emby.id} will give you the file paths you desire.
:idea: Please read the FAQ and How to Request Help.
Bexorcist
Posts: 30
Joined: 20 Dec 2020, 14:48

Re: Way to add LANGUAGE only when it isn't English?

Post by Bexorcist »

rednoah wrote: 07 Feb 2022, 01:10
Bexorcist wrote: 04 Feb 2022, 11:01 Any idea how to get the year as (XXXX) behind the movie name?
I see. If you want Name (Year) for TV Series folder names / Episode file names then you can use emby instead of plex which happens to do give you the naming you want:
viewtopic.php?t=4116

rednoah wrote: 12 Sep 2016, 10:03 Emby Naming Standard

The {emby} binding and the {plex} binding work exactly the same, with slightly different implementation details, e.g. series name and series folder formatting.

Code: Select all

TV Shows/Alias (2001)/Season 01/Alias (2001) - S01E01 - Truth Be Told
:idea: If you want {plex.id} but with Name (Year) folders then {emby.id} will give you the file paths you desire.
OK thx a lot! Will this 'Emby' binding be compatible with my PLEX as well?
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Way to add LANGUAGE only when it isn't English?

Post by rednoah »

If you're organizing files for Plex, then {plex.id} is recommended. But if you also want Name (Year) then {emby.id} is what you want. Presumably, it'll work just as well.


:?: Do you want Name (Year) because of personal preferences, or because you think that it'll make Plex work better? You can optimize for one of the other, but not both.
:idea: Please read the FAQ and How to Request Help.
Bexorcist
Posts: 30
Joined: 20 Dec 2020, 14:48

Re: Way to add LANGUAGE only when it isn't English?

Post by Bexorcist »

[quote=rednoah post_id=56972 time=1644627890 user_id=54]
If you're organizing files for Plex, then {plex.id} is recommended. But if you also want Name (Year) then {emby.id} is what you want. Presumably, it'll work just as well.


:?: Do you want Name (Year) because of personal preferences, or because you think that it'll make Plex work better? You can optimize for one of the other, but not both.
[/quote

Personal preferences. OCD acting up! :'(
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Way to add LANGUAGE only when it isn't English?

Post by rednoah »

Yep, then just go with {emby.id}. That should work.
:idea: Please read the FAQ and How to Request Help.
User avatar
Abassi
Posts: 1
Joined: 14 Feb 2022, 17:17

Re: Way to add LANGUAGE only when it isn't English?

Post by Abassi »

what strange results! ?

https://www.themoviedb.org/movie/52999- ... uage=en-US

Code: Select all

{ plex.derive{allOf{ languages =~ /eng/ ? null : languages.name[0].upper() }{genre}{director}{vf}.joining(', ', ' [', ']')}.name }

Code: Select all

{(plex^ null).name } {allOf{ languages =~ /eng/ ? null : languages.name[0].upper() }{genre}{director}{vf}.joining(', ', ' [', ']')}{subt}
Plex Naming Schemes
viewtopic.php?p=23141#p23141
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Way to add LANGUAGE only when it isn't English?

Post by rednoah »

What strange results do you get?
:idea: Please read the FAQ and How to Request Help.
Post Reply