Page 1 of 1
script help please
Posted: 30 Mar 2020, 02:41
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
Pick between WebRip / BluRay automatically in custom format
Posted: 30 Mar 2020, 05:28
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?

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
Re: script help please
Posted: 30 Mar 2020, 18:56
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
Re: script help please
Posted: 30 Mar 2020, 19:05
by rednoah
1.
Just use
{vs}. It'll standardize the value:
viewtopic.php?t=11265
2.
e.g.
{vf.upper()}
Re: script help please
Posted: 30 Mar 2020, 22:18
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
Re: script help please
Posted: 31 Mar 2020, 06:45
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