A null collection folder is created when there is no collection
Posted: 22 Jul 2020, 09:47
I'm not sure what changed. This used to work correctly.
When a movie has a collection this works properly.
C:\Movies\Anchorman Collection\Anchorman The Legend of Ron Burgundy (2004) [1080p] [x265]\Anchorman The Legend of Ron Burgundy (2004).mkv
When there is no collection, it creates a null collection folder.
C:\Movies\null\Major Payne (1995) [720p] [x264]\Major Payne (1995).mkv
Here is my script:
Here is my log from a movie.
Any ideas how to fix it?
When a movie has a collection this works properly.
C:\Movies\Anchorman Collection\Anchorman The Legend of Ron Burgundy (2004) [1080p] [x265]\Anchorman The Legend of Ron Burgundy (2004).mkv
When there is no collection, it creates a null collection folder.
C:\Movies\null\Major Payne (1995) [720p] [x264]\Major Payne (1995).mkv
Here is my script:
Code: Select all
filebot.launcher.exe -script fn:amc --output H:/ --log-file amc.log --action move --conflict auto -non-strict --def "seriesFormat={['D:', 'E:', 'F:', 'G:', 'H:', 'I:', 'J:', 'K:', 'L:', 'M:', 'N:', 'O:', 'P:'].collect{ drive -> def a=n; return new File(drive+\"/TV/\", a)}.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode.special ? 'Specials' : 'Season '+s}/{s00e00} {t}" "movieFormat={['D:', 'E:', 'F:', 'G:', 'H:', 'I:', 'J:', 'K:', 'L:', 'M:', 'N:', 'O:', 'P:'].collect{ new File(it+'/Movies/'+any{collection+'/'}{''}) }.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} {fn.contains('3d') || 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]\"} {\"[$vc]\"}/{n} {fn.contains('3d') || 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=Music/{n}/{\$album/}{\${pi.pad(2)}. } {t}" --def deleteAfterExtract=y --def clean=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
Filebot -version: FileBot 4.9.1 (r7372) / OpenJDK Runtime Environment 14 / Windows 7 6.1 (amd64)Run script [fn:amc] at [Wed Jul 22 00:12:32 EDT 2020]
Parameter: seriesFormat = {['D:', 'E:', 'F:', 'G:', 'H:', 'I:', 'J:', 'K:', 'L:', 'M:', 'N:', 'O:', 'P:'].collect{ drive -> def a=n; return new File(drive+"/TV/", a)}.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{episode.special ? 'Specials' : 'Season '+s}/{s00e00} {t}
Parameter: movieFormat = {['D:', 'E:', 'F:', 'G:', 'H:', 'I:', 'J:', 'K:', 'L:', 'M:', 'N:', 'O:', 'P:'].collect{ new File(it+'/Movies/'+any{collection+'/'}{''}) }.sort{ a,b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)} {fn.contains('3d') || 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]"} {"[$vc]"}/{n} {fn.contains('3d') || 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})
Parameter: musicFormat = Music/{n}/{\$album/}{\${pi.pad(2)}. } {t}
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: plex = *****
Parameter: pushbullet = *****
Parameter: ut_label =
Parameter: ut_state = 5
Parameter: ut_title = Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT
Parameter: ut_kind = multi
Parameter: ut_file = Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT.mkv
Parameter: ut_dir = C:\_Downloaded uTorrent Files\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT
Input: C:\_Downloaded uTorrent Files\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT.mkv
Group: {Movie=Enter the Dragon (1973)} => [Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [C:\_Downloaded uTorrent Files\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT.mkv]
[MOVE] from [C:\_Downloaded uTorrent Files\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT.mkv] to [L:\Movies\null\Enter the Dragon (1973) [1080p] [x264]\Enter the Dragon (1973).mkv]
Processed 1 files
Notify Plex: [host:192.168.***.***, token:*****************]
GET: http://192.168.***.***:32400/library/sections/all/refresh?X-Plex-Token=*******************
HttpNetworkError: Connect timed out: Unable to connect to 192.168.***.*** at this time. Please try again later.
Sending PushBullet report
SSLHandshakeException: Remote host terminated the handshake
Clean clutter files and empty folders
Delete C:\_Downloaded uTorrent Files\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT\RARBG.txt
Delete C:\_Downloaded uTorrent Files\Enter.The.Dragon.1973.1080p.BluRay.x264.DTS-FGT
Done ヾ(@⌒ー⌒@)ノ
Any ideas how to fix it?