Help setting up the amc script with uTorrent

Any questions? Need some help?
Post Reply
yoe
Posts: 6
Joined: 11 Dec 2015, 06:40

Help setting up the amc script with uTorrent

Post by yoe »

I get how awesome and powerful filebot scripting is, but honestly I really don't have time to learn how to fully write them. So instead, I'll be happy to paypal some coin to whoever can write me a script that does the following:

I use uTorrent to download tv/movie files into my C:\Users\Yoav\Downloads folder.

This is mostly done automatically through ShowRSS and in the end I have a lot of folders inside that downloads folder. I need the script to take ONLY the video files from any and all subfolders that are in the downloads folder and rename them according to this format:

The League S07E01 - Stages of Grief.mkv (for TV)
Mission Impossible – Rogue Nation (2015).mp4 (for Movies)

And then move TV shows to: S:\TV SHOWS\
and Movies to: S:\MOVIES\

The Movies can go right in the movies folder but the TV shows will go into a folder with the name of the show:

S:\TV SHOWS\The Walking Dead\The Walking Dead S05E02 - Strangers.mkv

After that's done, the script should go and delete the little nfo files and txt files that were in the folders that are now lacking the video files, and then delete the folder. It should be smart enough to know NOT to delete a folder that still has a video file in it in case the file hasn't been transferred for some reason, and also smart enough to know not to delete OTHER folders in the DOWNLOADS folder that have different data in them (data that is not movies or tv shows at all).

Is this even possible?
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: I'll pay you to write a script for me

Post by rednoah »

1.
Have you read Automated Media Center yet?
viewtopic.php?f=4&t=215

2.
The amc script covers pretty much all your requirements out-of-the-box, especially if your downloads folder already has movie/tv/other subfolders.

3.
smart enough to know not to delete OTHER folders in the DOWNLOADS folder that have different data in them
This might be tricky, unless you have a special other folder which is to be ignored as a whole.

4.
I won't get out of bed for less than 50 €, even if (and especially if) the solution is just a single command-line call. ;)
:idea: Please read the FAQ and How to Request Help.
yoe
Posts: 6
Joined: 11 Dec 2015, 06:40

Re: I'll pay you to write a script for me

Post by yoe »

I have looked over and tried the script, couldn't get it working properly.
garyleecn
Donor
Posts: 114
Joined: 19 Nov 2014, 03:48

Re: I'll pay you to write a script for me

Post by garyleecn »

you gotta say what kinda of problem you are running into, and red is VERY generous and helpful when you have problem, but he hates to just give you codes.

Code: Select all

filebot -script dev:amc --output /*your output folder directory*/ --log-file /*your log file directory, or you can just delete this*/FileBot.log --action move --conflict *override/auto/skip, you choose one* -non-strict /*your download folder directory*/ --def  artwork=y extra=y clean=y deleteAfterExtract=y subtitles=en
this will automatically sort all your movies and TV shows, to structure like
- videos
-- movies
--- movie 1 (year)
---- movie 1 (year).mkv/srt/nfo
-- tv shows
--- tv show 1
---- season 1
----- ep1.mkv/srt
swiftwitchy
Posts: 5
Joined: 26 Jan 2016, 02:43

Re: I'll pay you to write a script for me

Post by swiftwitchy »

garyleecn's script looks good.

In Utorrent, you will want to use the "Append .!ut to incomplete files" so any video files that are incomplete will not be accidentally processed when filebot scans your download directory.
When a download is completed in Utorrent, you can have it trigger/execute your filebot script and it will scan the /*your download folder directory*/ folder...

OR

If your download directory is large, you may find it an advantage to point to the specific download that you want processed instead of having it scan your entire download folder each time.
( You will need to remove the /*your download folder directory* and have Utorrent pass variables to your script so that your script opens only the file that was just completed )

Code: Select all

filebot -script dev:amc --output /*your output folder directory*/ --log-file /*your log file directory, or you can just delete this*/FileBot.log --action move --conflict *override/auto/skip, you choose one* -non-strict ""ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" --def  artwork=y extra=y clean=y deleteAfterExtract=y subtitles=en
Now with this configuration, I believe if it fails to identify a video file, the script will stop Thus leaving the download in tact/ not deleting it. (This would be useful for keping your "Other" types of files untouched). ?
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: I'll pay you to write a script for me

Post by rednoah »

It's highly recommend that excludeList is ALWAYS defined if the amc script is called on the same folder repeatedly:

Code: Select all

--def excludeList=amc.txt
Using --action move does not make a difference, --def excludeList must always be defined, unless the torrent client makes sure that the script is called exclusively on newly downloaded folders/files.
:idea: Please read the FAQ and How to Request Help.
Post Reply