I am trying to write a cleaner script to clean my completed files folder. I use c:/torrents/in progress then uTorrent moves it to c:/torrents/done. I also move the completed .torrent to the folder and would like to delete them as part of the clean up. If I understand the process correctly it should delete the *.torrent as it is less then 20MB which is the default minfile size.
All copy and rename functions work great, I am only having issues with the clean up.
Please help I have been at this for hours and can not figure out how to fix it.
FileBot V4.6 64bit (installed from filebot site windows installer)
uTorrent V3.4.5 Build 41162
Windows 10 64bit
java V8 u60 64bit
bat file called by utorrent (running with --action test from command prompt until I get it working)
"C:/Program Files/FileBot/filebot.exe" -script fn:amc --log-file amc-renamer.log --action test "C:/torrents/Done" --conflict override -non-strict --def ignore="([^\s]+(\.(?i)(!qt))$)" music=y subtitles=n artwork=n "seriesFormat=//PLEX-SERVER/TV Drive/TV Share/{n}/{'Season '+s}/{n} - {s00e00} - {t}" "movieFormat=//PLEX-SERVER/Movie Drive/Movies/{n} ({y})/{n} ({y}) {\".$lang\"}" "musicFormat=//PLEX-SERVER/Music/{n}/{album+'/'}{artist} - {t}" excludeList=amc-input.txt
"C:/Program Files/FileBot/filebot.exe" -script fn=cleaner --log-file amc-cleaner.log "C:/torrents/Done" --action test --def root=y
output of test run amc-renamer.log
Run script [fn:amc] at [Fri Oct 09 10:13:56 EDT 2015]
Parameter: ignore = ([^\s]+(\.(?i)(!qt))$)
Parameter: music = y
Parameter: subtitles = n
Parameter: artwork = n
Parameter: seriesFormat = //PLEX-SERVER/TV Drive/TV Share/{n}/{'Season '+s}/{n} - {s00e00} - {t}
Parameter: movieFormat = //PLEX-SERVER/Movie Drive/Movies/{n} ({y})/{n} ({y}) {".$lang"}
Parameter: musicFormat = //PLEX-SERVER/Music/{n}/{album+'/'}{artist} - {t}
Parameter: excludeList = amc-input.txt
Argument: C:\torrents\Done
Using excludes: C:\torrents\amc-input.txt (0)
Input: C:\torrents\Done\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD.mkv
Exclude: C:\torrents\Done\Penn And Teller Fool Us S01E05 WS PDTV XviD-SuperS.torrent
Exclude: C:\torrents\Done\Adult Beginners (2014).torrent
Exclude: C:\torrents\Done\Big.Brother.US.S17E16.720p.HDTV.x264-BAJSKORV.torrent
Exclude: C:\torrents\Done\Big.Brother.US.S17E17.720p.HDTV.x264-BAJSKORV.torrent
Exclude: C:\torrents\Done\Bones.S10E21.HDTV.x264-LOL.mp4.torrent
Exclude: C:\torrents\Done\Bones.S11E02.720p.HDTV.x264-KILLERS.torrent
Exclude: C:\torrents\Done\Code.Black.S01E02.720p.HDTV.X264-DIMENSION.mkv.torrent
Exclude: C:\torrents\Done\Final Girl (2015).torrent
Exclude: C:\torrents\Done\Finding.Carter.S01E08.PROPER.480p.HDTV.x264-mSD\Finding.Carter.S01E08.PROPER.480p.HDTV.x264-mSD.nfo
Exclude: C:\torrents\Done\Finding.Carter.S01E08.PROPER.480p.HDTV.x264-mSD\readme.txt
Exclude: C:\torrents\Done\Grimm S04E20 HDTV XviD-FUM.torrent
Exclude: C:\torrents\Done\Hot Pursuit (2015).torrent
Exclude: C:\torrents\Done\MacGyver Seasons 1-7.torrent
Exclude: C:\torrents\Done\Murder.in.the.First.S02E09.720p.HDTV.X264-DIMENSION.mkv.torrent
Exclude: C:\torrents\Done\Stitchers.S01E09.INTERNAL.720p.HDTV.x264-BATV[rarbg].torrent
Exclude: C:\torrents\Done\The Longest Ride (2015).torrent
Exclude: C:\torrents\Done\UnReal.S01E02.720p.HDTV.x264-BATV.mkv.torrent
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E04.HDTV.x264-BAJSKORV.torrent
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\First Read This Guide.txt
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\hollywood.game.night.s02e09.hdtv.x264-bajskorv.mp4.!ut
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\hollywood.game.night.s02e09.hdtv.x264-bajskorv.nfo
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\Sample\hollywood.game.night.s02e09.hdtv.x264-bajskorv.sample.mp4
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\www.random file.txt
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD.nfo
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD\Read Me.txt
Exclude: C:\torrents\Done\Food.Fighters.S01E02.HDTV.XviD-AFG.torrent
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E09.720p.HDTV.x264-BAJSKORV.torrent
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E19.HDTV.XviD-AFG.torrent
Exclude: C:\torrents\Done\Hollywood.Game.Night.S02E20.HDTV.XviD-AFG.torrent
Group: [tvs:game] => [Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD.mkv]
CmdlineException: Illegal language code: n
Oct 09, 2015 10:14:00 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Rename episodes using [TheTVDB]
Auto-detected query: [Game, Hollywood Game Night]
Fetching episode data for [Game On!]
Fetching episode data for [Gamecrib]
Fetching episode data for [Game Over]
Fetching episode data for [Game Sack]
Fetching episode data for [Game Theory]
Fetching episode data for [Hollywood Game Night]
[TEST] Rename [C:\torrents\Done\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD\Hollywood.Game.Night.S02E18.480p.HDTV.x264-mSD.mkv] to [\\PLEX-SERVER\TV Drive\TV Share\Hollywood Game Night\Season 2\Hollywood Game Night - S02E18 - What's Cooking on Game Night.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
output of test run amc-cleaner.log
Delete C:\torrents\Done\Finding.Carter.S01E08.PROPER.480p.HDTV.x264-mSD\Finding.Carter.S01E08.PROPER.480p.HDTV.x264-mSD.nfo
Delete C:\torrents\Done\Finding.Carter.S01E08.PROPER.480p.HDTV.x264-mSD\readme.txt
Delete C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\First Read This Guide.txt
Delete C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\hollywood.game.night.s02e09.hdtv.x264-bajskorv.nfo
Delete C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\Sample\hollywood.game.night.s02e09.hdtv.x264-bajskorv.sample.mp4
Delete C:\torrents\Done\Hollywood.Game.Night.S02E09.HDTV.x264-BAJSKORV\www.random file.txt
Done ヾ(@⌒ー⌒@)ノ
How to remove *.torrent as clutter files
Re: How to remove *.torrent as clutter files
1.
The cleaner script won't touch any "non-clutter" files, regardless of size. "torrent" is not on the list.
@see https://github.com/filebot/scripts/blob ... groovy#L14
2.
You could try passing your own --def exts pattern.
@see viewtopic.php?f=4&t=5#p1341
The cleaner script won't touch any "non-clutter" files, regardless of size. "torrent" is not on the list.
@see https://github.com/filebot/scripts/blob ... groovy#L14
2.
You could try passing your own --def exts pattern.
@see viewtopic.php?f=4&t=5#p1341