Author Topic: Complete Torrent Automation (with Plex)  (Read 62234 times)

Re: Complete Torrent Automation (with Plex)
Reply #15 on: September 23, 2014, 21:23:00 PM
Although I don't use Plex I was considering giving this a go to automate extracting to my media server, but that will probably need more customisation too.

Script will work as is if you just want to extract... even leaving in the plex line shouldn't cause an issue... if you use XBMC you can replace "plex=" with "XBMC=" in the script...

Let me know what you are planning on doing? I'll probably be able to tell you what changes you need....

I'll be amending this script to make it easier anyway..

or just map a drive letter

Re: Complete Torrent Automation (with Plex)
Reply #16 on: September 23, 2014, 21:41:08 PM
Although I don't use Plex I was considering giving this a go to automate extracting to my media server, but that will probably need more customisation too.

Script will work as is if you just want to extract... even leaving in the plex line shouldn't cause an issue... if you use XBMC you can replace "plex=" with "XBMC=" in the script...

Let me know what you are planning on doing? I'll probably be able to tell you what changes you need....

I'll be amending this script to make it easier anyway..

or just map a drive letter

Not sure what that would achieve? The idea of the script it to copy TV to one location and Films to a different location (renaming folders etc) not just taking the downloads and copying to a different folder..

Re: Complete Torrent Automation (with Plex)
Reply #17 on: September 23, 2014, 21:49:38 PM
I've updated the script, renaming the variables to make more sense..

It also creates the temporary and automation data folder automatically

    • Tekforums.net - It's new and improved!
  • Offline Clock'd 0Ne

  • Clockedtastic
  • Posts: 10,947
  • Administrator
  • Hero Member
Re: Complete Torrent Automation (with Plex)
Reply #18 on: September 23, 2014, 22:26:49 PM
It's more about extracting into the relevant folder on the relevant drive, e.g. where I have disks 1-4 in my microserver each has a TV folder, with various series in. I'm not sure if it can map like that?

Re: Complete Torrent Automation (with Plex)
Reply #19 on: September 23, 2014, 22:53:11 PM
Not with this script, however if they are split alphabetically you could run this script then post process based on the first letter?...

A-F on one drive etc..

Otherwise other option is just to span your drives to give one path?


Re: Complete Torrent Automation (with Plex)
Reply #20 on: September 24, 2014, 15:37:44 PM
What a great help you've been XEntity.  Everything is running smoothly now.  With my rss feed and this script, all i have to do is launch the plex app on my tv.  Makes life simple!
Last Edit: September 24, 2014, 17:45:02 PM by apedra #187;

Re: Complete Torrent Automation (with Plex)
Reply #21 on: September 24, 2014, 18:47:59 PM
No problem, glad to be of help!


Sent from my iPad using Tapatalk

Re: Complete Torrent Automation (with Plex)
Reply #22 on: September 24, 2014, 18:52:02 PM

It's more about extracting into the relevant folder on the relevant drive, e.g. where I have disks 1-4 in my microserver each has a TV folder, with various series in. I'm not sure if it can map like that?

Just had another thought about this, how do you decide what goes on which drive? If you use uTorrent for downloads then it's possible to tag them in uTorrent, and use the tag to define where they go I believe..


Sent from my iPad using Tapatalk

Re: Complete Torrent Automation (with Plex)
Reply #23 on: November 09, 2014, 22:56:43 PM
Updated original post to just use a single line that can be put direct in uTorrent - I think this should be fine, I can't remember the issue I was having first time around!

But this is much simpler, you need to swap out my folder names with your own obviously!

Re: Complete Torrent Automation (with Plex)
Reply #24 on: November 10, 2014, 14:06:39 PM
The reason I started using the original, more complicated script is because launching it directly from utorrent didnt seem to do anything.  I tried this method and it doesnt seem to be working for me.  I think I'll just go back to before.  I have noticed that upon completing its work (filebot that is), the filebot forum page automatically opens up.  This is very annoying!  Any fix?

Re: Complete Torrent Automation (with Plex)
Reply #25 on: November 10, 2014, 18:28:24 PM
So I found that uTorrent is quite picky about what's in the box...

If I have "filebot" this works, if I have the full path, then nothing appears to happen..

If I have filebot.launcher it doesn't work, but if I have filebot.launcher.exe it works fine..

I'd suggest playing a little, first of all start with just filebot, at least you can see if it's doing anything?

I've never seen the forum popup ever using either method... so a couple of things...

Check to see what the log file says?
C:\Users\[Username]\AppData\Roaming\FileBot\logs

Secondly a new version of filebot has just been released, so it may be something to do with that? Try upgrading filebot?

Let me know how you get on, the advantage of not using my script will mean it can achieve the same thing but less read/writes..

Re: Complete Torrent Automation (with Plex)
Reply #26 on: November 11, 2014, 03:15:56 AM
I updated filebot to the latest version, and all seems well, except utorrent is showing that files are missing from recently completed torrents.  I manually rechecked the files, so it seems ok now.

Re: Complete Torrent Automation (with Plex)
Reply #27 on: November 11, 2014, 18:57:44 PM
Good to know! Not sure why they needed a re-check as is set to copy, unless you changed clean up to yes maybe?

Re: Complete Torrent Automation (with Plex)
Reply #28 on: November 11, 2014, 21:15:41 PM
Greatest idea ever!
Can you help withthe script errors I'm getting? Here is the script result:


 Create automated data and temp folders - ignore already exists errors
 #################################################################

A subdirectory or file C:\Automatedata already exists.
A subdirectory or file C:\Downloads\InProgress already exists.

 Check if script is already running
 #################################################################


 Get Dir listing and save to temporary text file so next time the same files are
 not copied
 #################################################################

File Not Found

 Copy files to safe "TempTorrent" location excluding those present last time thi
s was run
 #################################################################

File not found - Complete
0 File(s) copied

 Delete old list and replace with temp list.
 #################################################################


 Run Filebot - unrecognised files will remain in the "TempTorrent" location
 #################################################################

Locking C:\Users\Billy\AppData\Roaming\FileBot\logs\amc.log
Nov 11, 2014 4:11:29 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Parameter: music = N
Parameter: artwork = n
Parameter: plex = localhost
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: seriesFormat = E:\TV Shows/{n}/{'S'+s}/{fn}
Parameter: animeFormat = /{n}/{fn}
Parameter: movieFormat = C:\Users\Billy\Videos\Movies/{n} {y}/{fn}
Parameter: musicFormat = /{n}/{fn}
Argument: C:\Downloads\InProgress
No files selected for processing
Failure (┬░_┬░)
Launch4j: Failed to run the given command.
Press any key to continue . . .

Re: Complete Torrent Automation (with Plex)
Reply #29 on: November 12, 2014, 22:16:35 PM
Would be handy if you could paste in the script itself, or at least the variables being used, but I expect I know what the error is or at least one of them...

There are two sets of variable paths, some require backslash (\) the others require forward slash(/)..

The library file paths at least are the wrong way round:

"E:\TV Shows" should be "E:/TV Shows"

However as stated in my recent update, the full script isn't really required, you just need to paste the one line in the first post in to uTorrent (amending your own paths) which will then be much less disk activity.

I've amended below with your details, you should just be able to paste this in to utorrent in the "run this program on completion" field and it should all work :)

I've changed it to show it's running, so you can change filebot to filebot.launcher.exe if you want it to run hidden.

filebot -script fn:amc --output "C:/Users/Billy/Videos" --log-file amc.log --action copy --conflict override -non-strict --def "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" music=N artwork=n plex=localhost deleteAfterExtract=n clean=n excludeList=amc-input.txt "seriesFormat=E:/TV Shows/{n}/{'S'+s}/{fn}" "animeFormat=C:/Users/Billy/Videos/Movies/{n}/{fn}" "movieFormat=C:/Users/Billy/Videos/Movies/{n} {y}/{fn}"

0 Members and 1 Guest are viewing this topic.