script help please

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
jaredc2
Posts: 8
Joined: 25 Jan 2020, 17:40

script help please

Post by jaredc2 »

can someone please help me make a script.

i use the following codes to name my movies. but how do i make a script so i can select all my movies and it pick the correct name.

Code: Select all

{n.space('.')}.{y}.WebRip.{vf}
{n.space('.')}.{y}.BluRay.{vf}
thanks
User avatar
rednoah
The Source
Posts: 22984
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Pick between WebRip / BluRay automatically in custom format

Post by rednoah »

1.
jaredc2 wrote: 30 Mar 2020, 02:41 but how do i make a script so i can select all my movies and it pick the correct name.
That's what filebot does, assuming script refers to shell script here:
https://www.filebot.net/cli.html

:?: What have you tried so far? Where are you stuck?

:idea: Please read How to Request Help.



EDIT:

2.
Perhaps, you mean to pick between WebRip / BluRay in your format automatically? Does script refer to custom format expression?

Have you tried using {vs} yet?
https://www.filebot.net/naming.html

Have you tried using conditions yet?
viewtopic.php?t=4191
:idea: Please read the FAQ and How to Request Help.
jaredc2
Posts: 8
Joined: 25 Jan 2020, 17:40

Re: script help please

Post by jaredc2 »

yes custom format expression. im horrible at creating these. is their a example anyone has.

one expression, that would turn like web,WEB-DL,bdrip, so on into either WebRip or BluRay. i can expand, if theirs a example or start.

also {vf} turns into 720p or 1080p, is their anyway to do a capital P?

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

Re: script help please

Post by rednoah »

1.
Just use {vs}. It'll standardize the value:
viewtopic.php?t=11265


2.
e.g. {vf.upper()}
:idea: Please read the FAQ and How to Request Help.
jaredc2
Posts: 8
Joined: 25 Jan 2020, 17:40

Re: script help please

Post by jaredc2 »

i got {n.space('.')}.{y}.{source.replace('WEBDL', 'webrip')}.{vf.upper()}

but how do i add like brip to Bluray in the expression or web-dl, so on.

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

Re: script help please

Post by rednoah »

jaredc2 wrote: 30 Mar 2020, 22:18 but how do i add like brip to Bluray in the expression or web-dl, so on.
That's what {vs} does:
viewtopic.php?t=11265
:idea: Please read the FAQ and How to Request Help.
Post Reply