Running FileBot from the console, Groovy scripting, shell scripts, etc
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 02 May 2014, 18:40
Does amc pushbullet feature works on Filebot portable version ?
edit: Notify plex doesnt works too
LOG:
Code: Select all
Parameter: subtitles = it
Parameter: pushbullet = *****
Parameter: seriesFormat = Telefilm/{n}/Stagione {s}/{n} - {s00e00} - {t}
Parameter: movieFormat = Film/mkv/{n} ({y})/{n} ({y}){-CD$pi}
Parameter: gmail = *****
Parameter: mailto = *****
Argument: C:\completed
Input: C:\completed\White Collar - Fascino criminale - S05E13 - Lo scambio.avi
Group: [tvs:white collar] => [White Collar - Fascino criminale - S05E13 - Lo scambio.avi]
Get [Italian] subtitles for 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [White Collar, White Collar Fascino criminale]
Fetching episode data for [White Collar]
[MOVE] Rename [C:\completed\White Collar - Fascino criminale - S05E13 - Lo scambio.avi] to [\\DISKSTATION\usbshare3\Telefilm\White Collar - Fascino criminale\Stagione 5\White Collar - Fascino criminale - S05E13 - Lo scambio.avi]
Processed 1 files
Sending PushBullet report
Failure (°_°)
CommandLine
Code: Select all
%rootfolder%\tools\FileBot\filebot -script %rootfolder%\tools\FileBot\amc.groovy "%completedfolder%" --def subtitles=%subtitles% --output "%fbdestination%" --def pushbullet=v1ihnzDtxQPQPG....imdXMRjEujv5dgsZ32i --def "seriesFormat=%seriesFormat%" "movieFormat=%movieFormat%" --db TheTVDB --lang it --db tmdb --lang it -r --def --action move --def gmail=%gmailudpw% --def mailto=%emailreport% -non-strict >> %rootfolder%\log\filebot_LOG.txt
rednoah
The Source
Posts: 23940 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2014, 07:50
You're not redirecting error output.
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 03 May 2014, 10:15
tried with the full version (non-portable) and it works.
any ideas ?
rednoah
The Source
Posts: 23940 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2014, 10:26
I might have some ideas if you show me the standard error output.
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 03 May 2014, 10:32
this ?
No mail received and no push from pushbullet
Code: Select all
Parameter: subtitles = it
Parameter: seriesFormat = Telefilm/{n}/Stagione {s}/{n} - {s00e00} - {t}
Parameter: movieFormat = Film/mkv/{n} ({y})/{n} ({y}){-CD$pi}
Parameter: gmail = *****
Parameter: mailto = *****
Parameter: pushbullet = *****
Parameter: plex =
Argument: I:\WZPDA\workingfolder\completed
Input: I:\WZPDA\workingfolder\completed\stored\Telefilm\White Collar - Fascino criminale\Stagione 5\White Collar - Fascino criminale - S05E13 - Lo scambio.avi
Group: [tvs:white collar] => [White Collar - Fascino criminale - S05E13 - Lo scambio.avi]
Get [Italian] subtitles for 1 files
No matching subtitles found: I:\WZPDA\workingfolder\completed\stored\Telefilm\White Collar - Fascino criminale\Stagione 5\White Collar - Fascino criminale - S05E13 - Lo scambio.avi
Rename episodes using [TheTVDB]
Auto-detected query: [White Collar, White Collar Fascino criminale]
Fetching episode data for [White Collar]
[MOVE] Rename [I:\WZPDA\workingfolder\completed\stored\Telefilm\White Collar - Fascino criminale\Stagione 5\White Collar - Fascino criminale - S05E13 - Lo scambio.avi] to [I:\WZPDA\workingfolder\stored\Telefilm\White Collar - Fascino criminale\Stagione 5\White Collar - Fascino criminale - S05E13 - Lo scambio.avi]
Processed 1 files
Notify Plex:
ConnectException: Connection refused: connect
Sending PushBullet report
MissingMethodException: No signature of method: java.net.URL.post() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String, java.util.LinkedHashMap) values: [------------------------------a1134e1059ac
Content-Disposition: form-data; name="device_iden"
ujv5dgsZ32idjAnBdJA0yG
------------------------------a1134e1059ac
Content-Disposition: form-data; name="type"
file
------------------------------a1134e1059ac
Content-Disposition: form-data; name="file"; filename="[FileBot] .html"
Content-Type: text/html; charset=utf-8
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'></meta>
<style>
p{font-family:Arial,Helvetica,sans-serif}
p b{color:#07a}
hr{border-style:dashed;border-width:1px 0 0 0;border-color:lightgray}
small{color:#d3d3d3;font-size:xx-small;font-weight:normal;font-family:Arial,Helvetica,sans-serif}
table a:link{color:#666;font-weight:bold;text-decoration:none}
table a:visited{color:#999;font-weight:bold;text-decoration:none}
table a:active,table a:hover{color:#bd5a35;text-decoration:underline}
table{font-family:Arial,Helvetica,sans-serif;color:#666;background:#eaebec;margin:15px;border:#ccc 1px solid;border-radius:3px;box-shadow:0 1px 2px #d1d1d1}
table th{padding:15px;border-top:1px solid #fafafa;border-bottom:1px solid #e0e0e0;background:#ededed}
table th{text-align:center;padding-left:20px}
table tr:first-child th:first-child{border-top-left-radius:3px}
table tr:first-child th:last-child{border-top-right-radius:3px}
table tr{text-align:left;padding-left:20px}
table td:first-child{text-align:left;padding-left:20px;border-left:0}
table td{padding:15px;border-top:1px solid #fff;border-bottom:1px solid #e0e0e0;border-left:1px solid #e0e0e0;background:#fafafa;white-space:nowrap}
table tr.even td{background:#f6f6f6}
table tr:last-child td{border-bottom:0}
table tr:last-child td:first-child{border-bottom-left-radius:3px}
table tr:last-child td:last-child{border-bottom-right-radius:3px}
table tr:hover td{background:#f2f2f2}
</style>
<title>[FileBot] </title>
</head>
<body>
<p>FileBot finished processing
<b></b> (1 files).
</p>
<hr></hr>
<table>
<tr>
<th>Original Name</th>
<th>New Name</th>
<th>New Location</th>
</tr>
<tr>
<td>White Collar - Fascino criminale - S05E13 - Lo scambio.avi</td>
<td>White Collar - Fascino criminale - S05E13 - Lo scambio.avi</td>
<td>I:\WZPDA\workingfolder\stored\Telefilm\White Collar - Fascino criminale\Stagione 5</td>
</tr>
</table>
<hr></hr>
<small>// Generated by FileBot 4.0 (r2056) on Quad at 03/05/14 12.31.58</small>
</body>
</html>
------------------------------a1134e1059ac--
, ...]
Possible solutions: post(java.lang.String, java.lang.Object, java.lang.Object), post(java.lang.String), post(java.lang.String, java.lang.Object), get(), wait(), post([B, java.lang.Object)
groovy.lang.MissingMethodException: No signature of method: java.net.URL.post() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String, java.util.LinkedHashMap) values: [------------------------------a1134e1059ac
Content-Disposition: form-data; name="device_iden"
ujv5dgsZ32idjAnBdJA0yG
------------------------------a1134e1059ac
Content-Disposition: form-data; name="type"
file
------------------------------a1134e1059ac
Content-Disposition: form-data; name="file"; filename="[FileBot] .html"
Content-Type: text/html; charset=utf-8
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'></meta>
<style>
p{font-family:Arial,Helvetica,sans-serif}
p b{color:#07a}
hr{border-style:dashed;border-width:1px 0 0 0;border-color:lightgray}
small{color:#d3d3d3;font-size:xx-small;font-weight:normal;font-family:Arial,Helvetica,sans-serif}
table a:link{color:#666;font-weight:bold;text-decoration:none}
table a:visited{color:#999;font-weight:bold;text-decoration:none}
table a:active,table a:hover{color:#bd5a35;text-decoration:underline}
table{font-family:Arial,Helvetica,sans-serif;color:#666;background:#eaebec;margin:15px;border:#ccc 1px solid;border-radius:3px;box-shadow:0 1px 2px #d1d1d1}
table th{padding:15px;border-top:1px solid #fafafa;border-bottom:1px solid #e0e0e0;background:#ededed}
table th{text-align:center;padding-left:20px}
table tr:first-child th:first-child{border-top-left-radius:3px}
table tr:first-child th:last-child{border-top-right-radius:3px}
table tr{text-align:left;padding-left:20px}
table td:first-child{text-align:left;padding-left:20px;border-left:0}
table td{padding:15px;border-top:1px solid #fff;border-bottom:1px solid #e0e0e0;border-left:1px solid #e0e0e0;background:#fafafa;white-space:nowrap}
table tr.even td{background:#f6f6f6}
table tr:last-child td{border-bottom:0}
table tr:last-child td:first-child{border-bottom-left-radius:3px}
table tr:last-child td:last-child{border-bottom-right-radius:3px}
table tr:hover td{background:#f2f2f2}
</style>
<title>[FileBot] </title>
</head>
<body>
<p>FileBot finished processing
<b></b> (1 files).
</p>
<hr></hr>
<table>
<tr>
<th>Original Name</th>
<th>New Name</th>
<th>New Location</th>
</tr>
<tr>
<td>White Collar - Fascino criminale - S05E13 - Lo scambio.avi</td>
<td>White Collar - Fascino criminale - S05E13 - Lo scambio.avi</td>
<td>I:\WZPDA\workingfolder\stored\Telefilm\White Collar - Fascino criminale\Stagione 5</td>
</tr>
</table>
<hr></hr>
<small>// Generated by FileBot 4.0 (r2056) on Quad at 03/05/14 12.31.58</small>
</body>
</html>
------------------------------a1134e1059ac--
, ...]
Possible solutions: post(java.lang.String, java.lang.Object, java.lang.Object), post(java.lang.String), post(java.lang.String, java.lang.Object), get(), wait(), post([B, java.lang.Object)
at PushBulletClient$_closure1_closure4.doCall(Script5.groovy:94)
at PushBulletClient$_closure1.doCall(Script5.groovy:76)
at Script3.run(Script3.groovy:417)
at net.sourceforge.filebot.cli.ScriptShell.evaluate(ScriptShell.java:91)
at net.sourceforge.filebot.cli.ScriptShell.runScript(ScriptShell.java:85)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:123)
at net.sourceforge.filebot.Main.main(Main.java:192)
Failure (°_°)
rednoah
The Source
Posts: 23940 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2014, 12:02
Use 4.1 RC2
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 03 May 2014, 12:05
Tried few minutes ago: (portable Version)
Code: Select all
MissingPropertyException: No such property: bindings for class: net.filebot.cli.ArgumentBean
groovy.lang.MissingPropertyException: No such property: bindings for class: net.filebot.cli.ArgumentBean
at Script1.run(Script1.groovy:9)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108)
at net.filebot.Main.main(Main.java:192)
Failure (°_°)
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 03 May 2014, 12:31
Perfect , now it works , I grabbed the last amc script. Thank you.
What is the difference between FN:amc and -script amc.groovy ?
rednoah
The Source
Posts: 23940 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 03 May 2014, 12:35
-script /path/to/script.groovy => local script
-script fn:amc => remote script
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 03 May 2014, 12:38
ok, thank you
So to be sure to always use the last script, it is better to use fn instead of local script.
Reneg
Posts: 37 Joined: 04 Jan 2012, 20:32
Post
by Reneg » 05 May 2014, 13:38
Is it possible to pass via command line the subject of the EMAIL / Pushbullet message instead of the autogenerated ?
thank you
rednoah
The Source
Posts: 23940 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 05 May 2014, 15:17
I guess that would be --def ut_title