New user has scripting questions

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
apw63
Posts: 9
Joined: 19 Nov 2013, 16:41

New user has scripting questions

Post by apw63 »

Hello

I'd like to say thank you for all the work that has been done to make my life easier!

I'm using the guide and settings for Automated Media Center utorrent intergration. The script is working great. I have made a few tweeks to fit my sytem. I would like to tweek it a little more but am not sure how to acomplish what I want.

What I currently have setup.
When torrent is done downloading filebot renames files and places them in my media folder.
If downloaded file is .MP4 the prosses stops if the file is .MKV or .avi. I have the program "watchfolder" watching my media folder and encodes it to .MP4.
Watchfolder deletes original file and moves encoded file to a folder Filebot.
I'm running your script from the CMD line "Watch folder and rename new episodes" which rename the new .MP4 files which is redundant and then moves the files to my media folder.

I have taken out the def subtitles=en. Would it be possable to only search for subtitles for non english speaking parts? Something like --def subtitles-forced=en
Is there a way to eliminate the program "watchfolder" and add scripting to do what I have watchfolder do?

Can I add to watch folder script to watch for movies files and rename them example below

Code: Select all

filebot -script fn:watcher -extract -rename /path/to/completed/ --output /final/destination/ --format "TV Shows/{n}/Season {s}/{n} {sxe} {t}" --db TheTVDB format "Movies/{n} {y}/{n} ({y}){" CD$pi"}" --db TheMovieDB
Thank you foar any help of ideas

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

Re: New user has scripting questions

Post by rednoah »

I'm sure you could come up with some sort of logic though I guess you'll script it yourself.

The cmdline you posted is very wrong since you can't specify multiple --db/format arguments so the watcher script is not suitable to distinguish between different video categories.
:idea: Please read the FAQ and How to Request Help.
apw63
Posts: 9
Joined: 19 Nov 2013, 16:41

Re: New user has scripting questions

Post by apw63 »

Thank you for the reply rednoah,

I'm a totally new to this scripting and I'm willing to learn. Is there a way I can script a watcher to distinguish between different Video categories? I seen in another post that there is a CMD line to to download all the script options. I can not find that post, could you give me the script please? How does the Automated Media Center distinguish between different video categories? When I understand scripting a little better I'll try to post some scripts for evaluation.

I'm I chasing my tail going with the watcher route?

Thank you for any info.

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

Re: New user has scripting questions

Post by rednoah »

All the info you need on Groovy is here:
http://groovy.codehaus.org/

All the scripts are here:
http://filebot.net/scripts/

The AMC script does distinguish, in some ways, but you may want to write up your own logic that works for your case. AMC contains everything you could possibly need but you probably will need some basics to make sense of it.

If you start with zero programming experience you'll learn need to learn many things till you get there. ;)
:idea: Please read the FAQ and How to Request Help.
apw63
Posts: 9
Joined: 19 Nov 2013, 16:41

Re: New user has scripting questions

Post by apw63 »

Thank you for the links. I don't have much experience with coding. I don't mind learning but it comes down to time. I'll see what I can figure out. What I have works great for tv shows. I need to work in movies. If I'm only DLing .MP4 files I'm all setup, it's when I DL .mkv movies and they need to be encoded in to .MP4. I'll keep reading and piece scripts together.

Andy
Post Reply