Including HDTV definition

All about user-defined episode / movie / file name format expressions
Post Reply
njf
Posts: 15
Joined: 29 Jun 2017, 23:04

Including HDTV definition

Post by njf »

Hi again

I am just starting to get to grips with the renaming syntax but I have a question to ask whether something is possible.

At the moment for my files which are in HD, my filenames include either 720p or 1080p. Is there any way to keep these in the new filenames when Filebot renames the files?

Thanks.

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

Re: Including HDTV definition

Post by rednoah »

Sounds like you want to use the {vf} binding in your format.

@see https://www.filebot.net/naming.html#bindings
:idea: Please read the FAQ and How to Request Help.
njf
Posts: 15
Joined: 29 Jun 2017, 23:04

Re: Including HDTV definition

Post by njf »

Thank you for that link. That is just what I need.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Including HDTV definition

Post by kim »

{vf} is ok if ALL your files are 720p or 1080p

but, instead of just {vf} you can use my custom:

Code: Select all

{def dir = file.parentFile.name+'.'+fn;
dir.find(/\bm720p\b|\bm1080p\b/) ? '.'+'m'+vf : dim[0]>=1280||dim[1]>=720 ? '.'+vf : '.'+hd}
or

Code: Select all

{def dir = file.parentFile.name+'.'+fn;
dir.find(/\bm720p\b|\bm1080p\b/) ? '.'+'m'+vf : hd=='HD' ? '.'+vf : '.'+hd}
= {vf} + support for m720p / m1080p or if e.g. '480p' it will write 'SD' (like Kodi does)

btw: "Including HDTV definition" = {source}
njf
Posts: 15
Joined: 29 Jun 2017, 23:04

Re: Including HDTV definition

Post by njf »

Thanks for this one, too. Great to see such support. I just wish I had discovered Filebot months ago.
Post Reply