All about user-defined episode / movie format expressions
-
AquaRelliux
- Posts: 5
- Joined: 06 Jan 2019, 13:15
Post
by AquaRelliux » 06 Jan 2019, 21:29
Hello Filebot forums
I am fairly new to Filebot and regexp just got my license today! I am wondering if it is possible to include to quality and type in the filename the result I am looking for is this:
The.Series - S04E22 - Pilot HDTV-720p
I can get it to include "HD" but not "TV" how do I get it to include the full quality type? Syntax looks like this now:
Code: Select all
{s00e00} - {t} {vf} {hd} {'.'+lang.ISO2}
-
rednoah
- The Source
- Posts: 16998
- Joined: 16 Nov 2011, 08:59
- Location: Taipei
-
Contact:
Post
by rednoah » 07 Jan 2019, 13:00
The
{hd} binding will only ever yield
SD /
HD /
UHD. It will never yield TV.
Maybe you want HD / UHD but not SD?
This will do:
or something more specific, like checking the video height:
-
AquaRelliux
- Posts: 5
- Joined: 06 Jan 2019, 13:15
Post
by AquaRelliux » 07 Jan 2019, 15:12
I want it to actually include TV because that is what Sonarr renames the file too. I want the Sonarr renaming and renaming from filebot to match. I will most likely only rename my files once with filebot and then let Sonarr rename them in the future. Here is an example on how Sonarr renames tv-shows:

-
rednoah
- The Source
- Posts: 16998
- Joined: 16 Nov 2011, 08:59
- Location: Taipei
-
Contact:
Post
by rednoah » 07 Jan 2019, 16:02
What does HDTV mean in Sonarr? Isn't that just the video source?
FileBot allows you to match the "source" from the existing file name via the
{source} binding:
Alternatively, maybe this will do? That'll give yo SDTV / HDTV / UHDTV depending on the video resolution:
-
AquaRelliux
- Posts: 5
- Joined: 06 Jan 2019, 13:15
Post
by AquaRelliux » 11 Jan 2019, 21:57
It means Quality. In Filebot you just get the resolution with {hd} not the actual quality of the episode which would be either HDTV or WEB etc
-
rednoah
- The Source
- Posts: 16998
- Joined: 16 Nov 2011, 08:59
- Location: Taipei
-
Contact:
Post
by rednoah » 12 Jan 2019, 01:34
I see. In FileBot, that would be {source} which matches patterns such as HDTV / WEB / BLURAY / etc from the current / original filename.