Set Source based on bitrate

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
zenyatta80
Posts: 2
Joined: 18 May 2019, 14:09

Set Source based on bitrate

Post by zenyatta80 »

Hi,

I am trying a mass renaming of my movie files. The objective is to be able to tag low bitrate movies so that I can use Radarr to download a better version. What I want to do is set the source as "Webdl" wherever the bitrate is less than 5 mbps.

I am such a newbie using filebot so appreciate any assistance with this. I will be running this using CLI on Linux.

Many thanks
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Set Source based on bitrate

Post by rednoah »

Best to play with the Format Editor GUI before you copy & paste your format into your CLI call:
https://www.filebot.net/naming.html

e.g.

Code: Select all

{bitrate < 5_000_000 ? 'Low Bitrate' : 'High Bitrate'}
:idea: Please read the FAQ and How to Request Help.
zenyatta80
Posts: 2
Joined: 18 May 2019, 14:09

Re: Set Source based on bitrate

Post by zenyatta80 »

many thanks.

How could I move these low birate files into a special folder?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Set Source based on bitrate

Post by rednoah »

The code for that is exactly the same:

Code: Select all

/path/to/{bitrate < 5_000_000 ? 'Low Bitrate' : 'High Bitrate'}/{fn}
:idea: Please read the FAQ and How to Request Help.
Post Reply