one digit rating name

All about user-defined episode / movie / file name format expressions
Post Reply
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

one digit rating name

Post by TAMASTEDA »

lately i have this bug. i use this script {genre}/{rating}-{y}/{n} ({y})
but the result is for example predator dark ages a short film of 2015 => Action/6.654-2015/predator dark ages (2015)
i would like 6.654 to be 6.7 so after dot one digit
how to?
User avatar
rednoah
The Source
Posts: 23001
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: one digit rating name

Post by rednoah »

:?: Which version of FileBot are you using? {rating} is rounded to 0.1 by default in more recent versions.


e.g.

Console Output: Select all

$ filebot -list --q 341870 --db TheMovieDB --format "{ny} | {rating}"
Predator: Dark Ages (2015) | 6.7
:idea: Please read the FAQ and How to Request Help.
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

Re: one digit rating name

Post by TAMASTEDA »

filebo 4.9.6
User avatar
rednoah
The Source
Posts: 23001
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: one digit rating name

Post by rednoah »

Please upgrade to the latest release. {rating} will then work as expected by default.
:idea: Please read the FAQ and How to Request Help.
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

Re: one digit rating name

Post by TAMASTEDA »

sorry for delay to answer. ok i will give a shot with a newer version . but if tried with your script $ filebot -list --q 341870 --db TheMovieDB --format "{ny} | {rating}"
but no result
User avatar
rednoah
The Source
Posts: 23001
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: one digit rating name

Post by rednoah »

TAMASTEDA wrote: 23 Mar 2024, 18:54 but no result
What does "no result" mean? Surely the command-line will print something? Please use screenshots so that we can see what you can see.

Screenshot
:idea: Please read the FAQ and How to Request Help.
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

Re: one digit rating name

Post by TAMASTEDA »

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

Re: one digit rating name

Post by rednoah »

TAMASTEDA wrote: 25 Mar 2024, 15:22 Screenshot
This is a filebot command to be used on the command-line:

Shell: Select all

$ filebot -list --q 341870 --db TheMovieDB --format "{ny} | {rating}"
This is the relevant format:

Format: Select all

{ny} | {rating}
This command and console output illustrates how this format would work out for a given movie:
** we use the command-line because we like copy & paste but you will want to run tests in the Format Editor if that is what you're used to; formats work the same; just don't paste a command-line into the Format Editor; that doesn't make sense
Screenshot





:arrow: All of the above merely serves to illustrate to you that {rating} yields 6.7 and thus does what you want to do by default:
Screenshot



:arrow: Your screenshot suggests that you're still using an older version. Please use the latest release. Read How to Request Help to learn how to check which version you are running.
:idea: Please read the FAQ and How to Request Help.
TAMASTEDA
Posts: 7
Joined: 13 Mar 2024, 18:40

Re: one digit rating name

Post by TAMASTEDA »

Ok thanks for all
Post Reply