Include quality in the file name

All about user-defined episode / movie / file name format expressions
Post Reply
AquaRelliux
Posts: 5
Joined: 06 Jan 2019, 13:15

Include quality in the file name

Post by AquaRelliux »

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}
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Include quality in the file name

Post by rednoah »

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:

Code: Select all

{hd == 'SD' ? hd : null}
or something more specific, like checking the video height:

Code: Select all

{h >= 700 ? hd : null}
:idea: Please read the FAQ and How to Request Help.
AquaRelliux
Posts: 5
Joined: 06 Jan 2019, 13:15

Re: Include quality in the file name

Post by AquaRelliux »

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:

Image
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Include quality in the file name

Post by rednoah »

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:

Code: Select all

{source}
Alternatively, maybe this will do? That'll give yo SDTV / HDTV / UHDTV depending on the video resolution:

Code: Select all

{hd}TV
:idea: Please read the FAQ and How to Request Help.
AquaRelliux
Posts: 5
Joined: 06 Jan 2019, 13:15

Re: Include quality in the file name

Post by AquaRelliux »

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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Include quality in the file name

Post by rednoah »

I see. In FileBot, that would be {source} which matches patterns such as HDTV / WEB / BLURAY / etc from the current / original filename.
:idea: Please read the FAQ and How to Request Help.
Post Reply