Filebot Worked But Now Does Not Move File
Posted: 11 Apr 2015, 22:56
I am extremely new to this and have a couple of questions.
Here's some background,
After many hours of trying to get the code right so that filebot will run from uTorrent and move and rename my video files, I finally got it to work last night. It seemed to be working perfectly.
Then this morning I wanted to use a script in "Run this program when a torrent changes state" in uTorrent to automatically remove the torrent when finished seeding. I found the script on this forum and it seemed to work (only it deletes torrent AND data, so I was left without the file). Though, this time Filebot didn't rename and move video file like it was doing last night. I then decided to remove the torrent auto deletion script, so that at least Filebot would work. When I did so, Filebot still didn't work. Any solutions?
Here is Groovy Pad sysinfo:
Here is what I put in "Run this program when torrent finishes:" in uTorrent,
Here is what I put in "Run this program when a torrent changes state" to remove torrent after seeding (but then removed it, because it deleted the file and filebot didn't work),
This is the script for the auto-delete torrent,
Again, my main priority is getting filebot to work again. Once I get that working, I would also like to get the auto-delete torrent in uTorrent script to just remove the torrent and not the data
Here's some background,
After many hours of trying to get the code right so that filebot will run from uTorrent and move and rename my video files, I finally got it to work last night. It seemed to be working perfectly.
Then this morning I wanted to use a script in "Run this program when a torrent changes state" in uTorrent to automatically remove the torrent when finished seeding. I found the script on this forum and it seemed to work (only it deletes torrent AND data, so I was left without the file). Though, this time Filebot didn't rename and move video file like it was doing last night. I then decided to remove the torrent auto deletion script, so that at least Filebot would work. When I did so, Filebot still didn't work. Any solutions?
Here is Groovy Pad sysinfo:
Code: Select all
FileBot 4.5.6 (r2818)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.9
JRE: Java(TM) SE Runtime Environment 1.8.0_40
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 60 MB Used Memory
OS: Windows 8.1 (amd64)
Code: Select all
filebot -script fn:amc --output "F:" --def "seriesFormat=F:/TV Shows/{n}/{'Season '+s}/{n} - {s00xe00} - {t}" "movieFormat=F:/Movies/{n} ({y})/{n} ({y})" --log-file amc.log --action move --conflict override -non-strict --def clean=y --def excludeList=amc.txt "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" plex=localhost:32400
Code: Select all
C:/Users/Mike/Desktop/Downloader/deletetorrent.vbs "%S" "%I"
Code: Select all
' If no arguments are made then the script wont run
If WScript.Arguments.Count = 0 Then 'If no Arguments >
msgbox "Missing Parameters"
Else
' Variables required for filebot and other stuff
Dim uState, uHash, WebUser, WebPass, WebHost, WebPort, WebAct 'Delete uLabel, if you don't want to filter by label
uState = WScript.Arguments(0) ' required to determine torrent state
uHash = WScript.Arguments(1) ' required to find torrent
WebUser = "user"
WebPass = "pass"
WebHost = "localhost" ' WebUI URL localhost|127.0.0.1, local connection is recommended
WebPort = "PORT" 'uTorrent listening port found in Preferences - > Connection
WebAct = "?action=removedata" 'Tells utorrent to deleted selected torrent
Automate
Sub Automate()
If Not uState = 11 Then Exit Sub 'Exit if torrent not Finnished
uToken = Webui("token.html") 'Authentication
call Webui(WebAct &"&token="& uToken &"&hash="& uHash) ' Access WebUI, Action: Delete Torrent & Data
End Sub
' This will access the WebUI
' by first getting the token that is required
' and then taking the requested action.
Public Function Webui(WebRequest)
SET xmlhttp = createobject("msxml2.xmlhttp.3.0")
xmlhttp.open "get", "http://"& WebUser &":"& WebPass &"@"& WebHost &":"& WebPort &"/gui/"& WebRequest, False
xmlhttp.send
If WebRequest = "token.html" Then
Webui = Replace(Replace(xmlhttp.responseText, "<html><div id='token' style='display:none;'>", ""), "</div></html>", "")
End If
End Function
' YOU CAN DELETE THIS IF YOU'RE NOT FILTERING BY LABEL
Function IsInArray(strIn, arrCheck)
Dim bFlag : bFlag = False
If IsArray(arrCheck) AND Not IsNull(strIn) Then
Dim i
For i = 0 to UBound(arrCheck)
If LCase(arrcheck(i)) = LCase(strIn) Then
bFlag = True
Exit For
End If
Next
End If
IsInArray = bFlag
End Function
End If