Help me making a script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
YasserDaSilva
Posts: 3
Joined: 03 May 2016, 13:10

Help me making a script

Post by YasserDaSilva »

Please I want your help with codding a script to automate subtitle download
I have my download folder for movies and series : "F:\"
and it contains two folders "films" and "series"
I have sonar installed to take care of my series downloading; renaming and organizing and separate folders and seasons folders
but I manually download my movies - rename them and download eng sub and then put them in a separate folder inside "F:\Films" folder . and i use µtorrent

i want a script that will :
1)download episodes subtitles and put them in the right folder with episode
2)rename my new downloaded movies download Eng sub and put the two files in a folder inside this folder "F:\Films"
i think i have read that the source files in FileBot scripts shouldn't be "X:\" if that's the case i can change it to "F:\Downloads"
YasserDaSilva
Posts: 3
Joined: 03 May 2016, 13:10

Re: Help me making a script

Post by YasserDaSilva »

and if possible :
Search video files for embedded subtitles and skip opensubtitle search if found
Notify Plex to update library
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help me making a script

Post by rednoah »

Sounds like you're describing all the features of the amc script. What have you tried so far?
:idea: Please read the FAQ and How to Request Help.
YasserDaSilva
Posts: 3
Joined: 03 May 2016, 13:10

Re: Help me making a script

Post by YasserDaSilva »

I made it this far

Code: Select all

@echo off
"C:/Program Files/FileBot/filebot.exe" -script fn:amc F:\Downloads --output F:\ --def @F:\Arg.txt --def subtitles=en --def clean=y
pause
exit
Arg.txt :

Code: Select all

movieFormat={n} ({vf}) {y}\{n} ({vf}) {y}
I have almost all of my movies organized but
i was using another program that' creates a local movies library by putting every movie in a separate folder and download a lot of backgrounds and posters and metadata files
and when i use the script that i wrote it changed only movies that weren't named correctly or need subtitles
but the remaining 70 movie that were named
the script didn't delete there backgrounds and everything
how can i fix this
============
where can i find Plex host and token (an image if possible)


BTW i really love FileBot
and i hope in the future these options will be included in FileBot settings and can be activated with a simple command from cmd or µtorrent like
filebot.exe -amcScript
User avatar
rednoah
The Source
Posts: 24037
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help me making a script

Post by rednoah »

1.
I'm not quite sure what exactly you want that's not working already. You didn't include any logs.

You can find documentation on all the options here:
viewtopic.php?f=4&t=215

All of my examples include these options, so that should work well for typical users:

Code: Select all

-non-strict --conflict skip --log-file amc.log --def unsorted=y music=y artwork=y excludeList=amc.txt

2.
Plex support is the best place to get Plex support:
https://support.plex.tv/hc/en-us/articl ... Plex-Token
:idea: Please read the FAQ and How to Request Help.
Post Reply