Page 1 of 1

Is there something I can add to my script to get a IMDB rating at the end of my renamed title?

Posted: 26 Jan 2021, 11:21
by AstroAvocado
The script I use at the moment is this:

Code: Select all

filebot -script fn:amc --output "F:\Filebot\Completed" --log-file amc.log --action move --conflict override -non-strict "F:\Filebot\Movies" --def music=n subtitles=en artwork=y extras=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
It has worked perfectly for years in regards to how I have liked my movie folders and files renamed, however, I would love to be able to add the IMDB rating to the end of the title if possble. Does anyone know If and how I could do this?

Cheers. :-)

Re: Is there something I can add to my script to get a IMDB rating at the end of my renamed title?

Posted: 26 Jan 2021, 12:47
by rednoah
You can use a custom format for that:
https://www.filebot.net/naming.html


:idea: If you're new to custom formats, then you'll want to start prototyping with the GUI first.


Image

Re: Is there something I can add to my script to get a IMDB rating at the end of my renamed title?

Posted: 26 Jan 2021, 20:18
by kim
add something like:

Code: Select all

--def movieFormat="{plex.derive{" $omdb.rating"}}"
imdb id:

Code: Select all

--def movieFormat="{plex.derive{" $imdbid"}}"

Re: Is there something I can add to my script to get a IMDB rating at the end of my renamed title?

Posted: 27 Jan 2021, 04:31
by rednoah
Note that you will need to escape the argument correctly if you want to use it on the command-line, thus you can't use nested "..."..."..." in-line.


:idea: Please read Cmdline and Argument Passing for details.


:idea: Use the @file syntax for reading command-line arguments from external text files.