Page 1 of 1

Including HDTV definition

Posted: 02 Jul 2017, 16:27
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

Re: Including HDTV definition

Posted: 02 Jul 2017, 17:03
by rednoah
Sounds like you want to use the {vf} binding in your format.

@see https://www.filebot.net/naming.html#bindings

Re: Including HDTV definition

Posted: 02 Jul 2017, 17:15
by njf
Thank you for that link. That is just what I need.

Re: Including HDTV definition

Posted: 02 Jul 2017, 19:13
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}

Re: Including HDTV definition

Posted: 02 Jul 2017, 23:38
by njf
Thanks for this one, too. Great to see such support. I just wish I had discovered Filebot months ago.