I tried again using what the escape tool showed and it worked once but didn't clean up all the left over files and folder. I tested with another movie I had and bad things happened. It did move and rename the movie and a subtitle but left the previous folder and extra filles.
C:\Scripts>filebot -script C:\Scripts\folder_watcher.groovy G:/Watched
Waiting for events
Locking C:\Users\Amishman\AppData\Roaming\FileBot\logs\amc.log
Parameter: seriesFormat = TV/{n}/{'Season '+s.pad (1)}/{s00e00} {t}
Parameter: movieFormat = New Movies/{n} {fn.contains('3D') || fn.contains('3-D')
? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut
|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ')
.replaceAll(/[._]/, " ") + ')'} ({y}) {[vf]}/{n} {fn.contains('3D') || fn.contai
ns('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unra
ted|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().j
oin(', ').replaceAll(/[._]/, " ") + ')'} ({y})
Parameter: musicFormat = H:/Music/{n}/{$album/}{${pi.pad(2)}. } {t}
Parameter: clean = y
Parameter: plex = localhost
Parameter: deleteAfterExtract = y
Parameter: pushbullet = *****
Argument: G:\Watched
Input: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\Escape from Planet Earth 3D
(2013).srt
Input: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\Escape.from.Planet.Earth.3D
.(2013).mp4
Exclude: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\about.jpg
Exclude: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\Escape from Planet Earth
3D (2013).mp4.tgmd
Escape from Planet Earth 3D (2013).srt [series: Planet Earth, movie: Escape from
Planet Earth (2013)]
Exclude Series: Planet Earth
Escape.from.Planet.Earth.3D.(2013).mp4 [series: Planet Earth, movie: Escape from
Planet Earth (2013)]
Exclude Series: Planet Earth
Group: [tvs:null, mov:escape from planet earth 2013, anime:null] => [Escape from
Planet Earth 3D (2013).srt, Escape.from.Planet.Earth.3D.(2013).mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [G:\Watched\Escape.from.Planet.Earth.3D.(2013)\E
scape.from.Planet.Earth.3D.(2013).mp4]
Auto-detect movie from context: [G:\Watched\Escape.from.Planet.Earth.3D.(2013)\E
scape from Planet Earth 3D (2013).srt]
[MOVE] Rename [G:\Watched\Escape.from.Planet.Earth.3D.(2013)\Escape.from.Planet.
Earth.3D.(2013).mp4] to [G:\New Movies\Escape from Planet Earth 3D (2013) [1080
p]\Escape from Planet Earth 3D (2013).mp4]
[MOVE] Rename [G:\Watched\Escape.from.Planet.Earth.3D.(2013)\Escape from Planet
Earth 3D (2013).srt] to [G:\New Movies\Escape from Planet Earth 3D (2013) [1080
p]\Escape from Planet Earth 3D (2013).srt]
Processed 2 files
Notify Plex: localhost
Saving report as C:\Users\Amishman\AppData\Roaming\FileBot\reports\AMC [2014-03-
27 22h00m] .html
Sending PushBullet report
MissingMethodException: No signature of method: java.net.URL.post() is applicabl
e for argument types: (java.lang.String, java.lang.String, java.lang.String, jav
a.util.LinkedHashMap) values: [------------------------------a1134e1059ac
Content-Disposition: form-data; name="device_iden"
Failure (┬░_┬░)ujBQHQSJR8KdjzWIEVDzOK
------------------------------a1134e1059ac
Content-Disposition: form-data; name="type"
file
------------------------------a1134e1059ac
Content-Disposition: form-data; name="file"; filename="[FileBot] "
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;f
ont-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:b
old;text-decoration:none}
table a:active,table a:hover{color:#bd5a
35;text-decoration:underline}
table{font-family:Arial,Helvetica,sans-s
erif;color:#666;background:#eaebec;margin:15px;border:#ccc 1px solid;border-radi
us:3px;box-shadow:0 1px 2px #d1d1d1}
table th{padding:15px;border-top:1px sol
id #fafafa;border-bottom:1px solid #e0e0e0;background:#ededed}
table th{text-align:center;padding-left:
20px}
table tr:first-child th:first-child{bord
er-top-left-radius:3px}
table tr:first-child th:last-child{borde
r-top-right-radius:3px}
table tr{text-align:left;padding-left:20
px}
table td:first-child{text-align:left;pad
ding-left:20px;border-left:0}
table td{padding:15px;border-top:1px sol
id #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{borde
r-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> (2 files).
</p>
<hr></hr>
<table>
<tr>
<th>Original Name</th>
<th>New Name</th>
<th>New Location</th>
</tr>
<tr>
<td>Escape.from.Planet.Earth.3D.(2013).mp4</td>
<td>Escape from Planet Earth 3D (2013).mp4</td>
<td>G:\New Movies\Escape from Planet Earth 3D (2013) [1080p]</td>
</tr>
<tr>
<td>Escape from Planet Earth 3D (2013).srt</td>
<td>Escape from Planet Earth 3D (2013).srt</td>
<td>G:\New Movies\Escape from Planet Earth 3D (2013) [1080p]</td>
</tr>
</table>
<hr></hr>
<small>// Generated by FileBot 4.0 (r2082) on Mule at 3/27/14 10:00:36 PM</s
mall>
</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(java.util.Map)
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: [------------------------------a1134e1
059ac
Content-Disposition: form-data; name="device_iden"
ujBQHQSJR8KdjzWIEVDzOK
------------------------------a1134e1059ac
Content-Disposition: form-data; name="type"
file
------------------------------a1134e1059ac
Content-Disposition: form-data; name="file"; filename="[FileBot] "
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;f
ont-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:b
old;text-decoration:none}
table a:active,table a:hover{color:#bd5a
35;text-decoration:underline}
table{font-family:Arial,Helvetica,sans-s
erif;color:#666;background:#eaebec;margin:15px;border:#ccc 1px solid;border-radi
us:3px;box-shadow:0 1px 2px #d1d1d1}
table th{padding:15px;border-top:1px sol
id #fafafa;border-bottom:1px solid #e0e0e0;background:#ededed}
table th{text-align:center;padding-left:
20px}
table tr:first-child th:first-child{bord
er-top-left-radius:3px}
table tr:first-child th:last-child{borde
r-top-right-radius:3px}
table tr{text-align:left;padding-left:20
px}
table td:first-child{text-align:left;pad
ding-left:20px;border-left:0}
table td{padding:15px;border-top:1px sol
id #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{borde
r-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> (2 files).
</p>
<hr></hr>
<table>
<tr>
<th>Original Name</th>
<th>New Name</th>
<th>New Location</th>
</tr>
<tr>
<td>Escape.from.Planet.Earth.3D.(2013).mp4</td>
<td>Escape from Planet Earth 3D (2013).mp4</td>
<td>G:\New Movies\Escape from Planet Earth 3D (2013) [1080p]</td>
</tr>
<tr>
<td>Escape from Planet Earth 3D (2013).srt</td>
<td>Escape from Planet Earth 3D (2013).srt</td>
<td>G:\New Movies\Escape from Planet Earth 3D (2013) [1080p]</td>
</tr>
</table>
<hr></hr>
<small>// Generated by FileBot 4.0 (r2082) on Mule at 3/27/14 10:00:36 PM</s
mall>
</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(java.util.Map)
at PushBulletClient$_closure1_closure4.doCall(Script5.groovy:94)
at PushBulletClient$_closure1.doCall(Script5.groovy:76)
at Script3.run(Script3.groovy:412)
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(ArgumentProcess
or.java:123)
at net.sourceforge.filebot.Main.main(Main.java:192)
Launch4j: Failed to run the given command.
Locking C:\Users\Amishman\AppData\Roaming\FileBot\logs\amc.log
Parameter: seriesFormat = TV/{n}/{'Season '+s.pad (1)}/{s00e00} {t}
Parameter: movieFormat = New Movies/{n} {fn.contains('3D') || fn.contains('3-D')
? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut
|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ')
.replaceAll(/[._]/, " ") + ')'} ({y}) {[vf]}/{n} {fn.contains('3D') || fn.contai
ns('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unra
ted|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().j
oin(', ').replaceAll(/[._]/, " ") + ')'} ({y})
Parameter: musicFormat = H:/Music/{n}/{$album/}{${pi.pad(2)}. } {t}
Parameter: clean = y
Parameter: plex = localhost
Parameter: deleteAfterExtract = y
Parameter: pushbullet = *****
Argument: G:\Watched
Exclude: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\about.jpg
Exclude: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\Escape from Planet Earth
3D (2013).mp4.tgmd
Exclude: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\folder.jpg
Exclude: G:\Watched\Escape.from.Planet.Earth.3D.(2013)\mediainfo.data
Done ヾ(@⌒ー⌒@)ノ
Here is the script that I used:
Code: Select all
def watchman = args.watch { changes ->
execute('''filebot -script fn:amc -non-strict --output "G:/" "G:/Watched" --log-file amc.log --action move --conflict override --def \"seriesFormat=TV/{n}/{'Season '+s.pad (1)}/{s00e00} {t}\" \"movieFormat=New Movies/{n} {fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':\\\"\\\"}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \\\" \\\") + ')'} ({y}) {[vf]}/{n} {fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':\\\"\\\"}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, \\\" \\\") + ')'} ({y})\" \"musicFormat=H:/Music/{n}/{\$album/}{\${pi.pad(2)}. } {t}\" --def clean=y --def plex=localhost --def deleteAfterExtract=y --def pushbullet=******''')
}
watchman.commitDelay = 5 * 1000
watchman.commitPerFolder = false
println "Waiting for events"
if (console) { console.readLine() } else { sleep(Long.MAX_VALUE) } // keep running and watch for changes