I followed all the steps to get filebot and plex working correctly with DSM7, plex and filebot have read/write permissions on the shared folder and it does everything as it should except that now filebot is only deleting clutter files and not the clutter folders. Have not made any changes to my scripts at all. Yeah my script is a mess but it works

Code: Select all
Run script [fn:amc] at [Thu Sep 16 18:20:04 AEST 2021]
Parameter: music = y
Parameter: artwork = y
Parameter: clean = y
Parameter: skipExtract = y
Parameter: minLengthMS = 0
Parameter: minFileSize = 0
Parameter: plex = *****
Parameter: seriesFormat = "TV Shows/{n}/{'Season '+s}/{n} - {s00e00} - {t} [{vf}.{hdr.replace('HDR10', 'HDR10.').replace('HDRP', 'HDR.')}{source.replace('WEBRip', 'WEB-DL')}.{aco == /Dolby Digital/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus with Dolby Atmos/ ? 'DD'+channels+'.Atmos' : null}{aco == /Dolby TrueHD with Dolby Atmos/ ? 'TrueHD.'+channels+'.Atmos' : null}{aco == /Dolby TrueHD/ ? 'TrueHD.'+channels : null}{aco == /MLP FBA/ ? 'TrueHD.'+channels : null}{aco == /DTS-HD High Resolution Audio/ ? 'DTS-HD.'+channels : null }{aco =~ /DTS-HD Master Audio/ ? 'DTS-MA.'+channels : null }{aco == /DTS-ES Matrix/ ? 'DTS.'+channels : null }{aco == /DTS-ES Discrete/ ? 'DTS.'+channels : null }{aco == /DTS/ ? 'DTS.'+channels : null }{aco =~ /AAC/ ? 'AAC'+channels : null }{aco == /PCM/ ? 'PCM'+channels : null }{aco == /Layer 3/ ? 'MP3.'+channels : null }{aco == /Layer 2/ ? 'MP2.'+channels : null }]"
Parameter: movieFormat = "Movies/{ny} [{vf}.{hdr.replace('HDR10', 'HDR10.').replace('HDR+', 'HDRP.')}{source.replace('WEBRip', 'WEB-DL')}.{aco == /Dolby Digital/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus with Dolby Atmos/ ? 'DD'+channels+'.Atmos' : null}{aco == /Dolby TrueHD with Dolby Atmos/ ? 'TrueHD.'+channels+'.Atmos' : null}{aco == /Dolby TrueHD/ ? 'TrueHD.'+channels : null}{aco == /MLP FBA/ ? 'TrueHD.'+channels : null}{aco == /DTS-HD High Resolution Audio/ ? 'DTS-HD.'+channels : null }{aco == /DTS-HD Master Audio/ ? 'DTS-MA.'+channels : null }{aco == /DTS-ES Matrix/ ? 'DTS.'+channels : null }{aco == /DTS-ES Discrete/ ? 'DTS.'+channels : null }{aco == /DTS/ ? 'DTS.'+channels : null }{aco == /AAC/ ? 'AAC'+channels : null }{aco == /PCM/ ? 'PCM'+channels : null }{aco == /Layer 3/ ? 'MP3.'+channels : null }{aco =~ /Layer 2/ ? 'MP2.'+channels : null }]/{ny} [{vf}.{hdr.replace('HDR10', 'HDR10.').replace('HDR+', 'HDRP.')}{source.replace('WEBRip', 'WEB-DL')}.{aco == /Dolby Digital/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus with Dolby Atmos/ ? 'DD'+channels+'.Atmos' : null}{aco == /Dolby TrueHD with Dolby Atmos/ ? 'TrueHD.'+channels+'.Atmos' : null}{aco == /Dolby TrueHD/ ? 'TrueHD.'+channels : null}{aco == /MLP FBA/ ? 'TrueHD.'+channels : null}{aco == /DTS-HD High Resolution Audio/ ? 'DTS-HD.'+channels : null }{aco == /DTS-HD Master Audio/ ? 'DTS-MA.'+channels : null }{aco == /DTS-ES Matrix/ ? 'DTS.'+channels : null }{aco == /DTS-ES Discrete/ ? 'DTS.'+channels : null }{aco == /DTS/ ? 'DTS.'+channels : null }{aco == /AAC/ ? 'AAC'+channels : null }{aco == /PCM/ ? 'PCM'+channels : null }{aco == /Layer 3/ ? 'MP3.'+channels : null }{aco == /Layer 2/ ? 'MP2.'+channels : null }]"
Parameter: excludeList = .excludes
Argument[0]: /volume1/Media/Downloads/Media
Bad seriesFormat value: "TV Shows/{n}/{'Season '+s}/{n} - {s00e00} - {t} [{vf}.{hdr.replace('HDR10', 'HDR10.').replace('HDRP', 'HDR.')}{source.replace('WEBRip', 'WEB-DL')}.{aco == /Dolby Digital/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus with Dolby Atmos/ ? 'DD'+channels+'.Atmos' : null}{aco == /Dolby TrueHD with Dolby Atmos/ ? 'TrueHD.'+channels+'.Atmos' : null}{aco == /Dolby TrueHD/ ? 'TrueHD.'+channels : null}{aco == /MLP FBA/ ? 'TrueHD.'+channels : null}{aco == /DTS-HD High Resolution Audio/ ? 'DTS-HD.'+channels : null }{aco =~ /DTS-HD Master Audio/ ? 'DTS-MA.'+channels : null }{aco == /DTS-ES Matrix/ ? 'DTS.'+channels : null }{aco == /DTS-ES Discrete/ ? 'DTS.'+channels : null }{aco == /DTS/ ? 'DTS.'+channels : null }{aco =~ /AAC/ ? 'AAC'+channels : null }{aco == /PCM/ ? 'PCM'+channels : null }{aco == /Layer 3/ ? 'MP3.'+channels : null }{aco == /Layer 2/ ? 'MP2.'+channels : null }]"
Bad movieFormat value: "Movies/{ny} [{vf}.{hdr.replace('HDR10', 'HDR10.').replace('HDR+', 'HDRP.')}{source.replace('WEBRip', 'WEB-DL')}.{aco == /Dolby Digital/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus with Dolby Atmos/ ? 'DD'+channels+'.Atmos' : null}{aco == /Dolby TrueHD with Dolby Atmos/ ? 'TrueHD.'+channels+'.Atmos' : null}{aco == /Dolby TrueHD/ ? 'TrueHD.'+channels : null}{aco == /MLP FBA/ ? 'TrueHD.'+channels : null}{aco == /DTS-HD High Resolution Audio/ ? 'DTS-HD.'+channels : null }{aco == /DTS-HD Master Audio/ ? 'DTS-MA.'+channels : null }{aco == /DTS-ES Matrix/ ? 'DTS.'+channels : null }{aco == /DTS-ES Discrete/ ? 'DTS.'+channels : null }{aco == /DTS/ ? 'DTS.'+channels : null }{aco == /AAC/ ? 'AAC'+channels : null }{aco == /PCM/ ? 'PCM'+channels : null }{aco == /Layer 3/ ? 'MP3.'+channels : null }{aco =~ /Layer 2/ ? 'MP2.'+channels : null }]/{ny} [{vf}.{hdr.replace('HDR10', 'HDR10.').replace('HDR+', 'HDRP.')}{source.replace('WEBRip', 'WEB-DL')}.{aco == /Dolby Digital/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus/ ? 'DD'+channels : null}{aco == /Dolby Digital Plus with Dolby Atmos/ ? 'DD'+channels+'.Atmos' : null}{aco == /Dolby TrueHD with Dolby Atmos/ ? 'TrueHD.'+channels+'.Atmos' : null}{aco == /Dolby TrueHD/ ? 'TrueHD.'+channels : null}{aco == /MLP FBA/ ? 'TrueHD.'+channels : null}{aco == /DTS-HD High Resolution Audio/ ? 'DTS-HD.'+channels : null }{aco == /DTS-HD Master Audio/ ? 'DTS-MA.'+channels : null }{aco == /DTS-ES Matrix/ ? 'DTS.'+channels : null }{aco == /DTS-ES Discrete/ ? 'DTS.'+channels : null }{aco == /DTS/ ? 'DTS.'+channels : null }{aco == /AAC/ ? 'AAC'+channels : null }{aco == /PCM/ ? 'PCM'+channels : null }{aco == /Layer 3/ ? 'MP3.'+channels : null }{aco == /Layer 2/ ? 'MP2.'+channels : null }]"
Use excludes: /volume1/Media/.excludes (1)
Ignore system path: /volume1/Media/Downloads/Media/@eaDir
Ignore system path: /volume1/Media/Downloads/Media/Stargirl.S02E06.Summer.School.Chapter.Six.1080p.AMZN.WEBRip.DDP5.1.x264-NTb[rarbg]/@eaDir
Ignore system path: /volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/@eaDir
Input: /volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/Titans.S03E08.Home.1080p.HMAX.WEB-DL.DD5.1.H.264-NTb.mkv
Group: {Series=titans} => [Titans.S03E08.Home.1080p.HMAX.WEB-DL.DD5.1.H.264-NTb.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Titans]
Fetching episode data for [Titans]
Fetching episode data for [Titans (2018)]
Fetching episode data for [Teen Titans]
Fetching episode data for [Tattoo Titans]
Fetching episode data for [Titansgrave]
Failed to read media characteristics: /volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/Titans.S03E08.Home.1080p.HMAX.WEB-DL.DD5.1.H.264-NTb.mkv [Last-Modified: Thu Sep 16 18:11:43 AEST 2021]: [/volume1/@appstore/MediaServer/bin/ffprobe, -show_streams, -show_format, -print_format, json, -v, error, /volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/Titans.S03E08.Home.1080p.HMAX.WEB-DL.DD5.1.H.264-NTb.mkv] failed (1)
Stripping invalid characters from new path: "TV Shows/Titans (2018)/Season 3/Titans (2018) - S03E08 - Home [1080p.HMAX.WEB-DL.DD5.1]"
[MOVE] from [/volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/Titans.S03E08.Home.1080p.HMAX.WEB-DL.DD5.1.H.264-NTb.mkv] to [/volume1/Media/TV Shows/Titans (2018)/Season 3/Titans (2018) - S03E08 - Home [1080p.HMAX.WEB-DL.DD5.1].mkv]
[REFRESH] Refresh File Services (/volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg])
[REFRESH] Refresh File Services (/volume1/Media/TV Shows/Titans (2018)/Season 3)
Processed 1 file
Fetching series artwork for [Titans (2018) / Season 3] to [/volume1/Media/TV Shows/Titans (2018)/Season 3]
Generate Series NFO: Titans (2018) [341663]
Banner already exists: /volume1/Media/TV Shows/Titans (2018)/poster.jpg
Banner already exists: /volume1/Media/TV Shows/Titans (2018)/banner.jpg
Banner already exists: /volume1/Media/TV Shows/Titans (2018)/fanart.jpg
Banner already exists: /volume1/Media/TV Shows/Titans (2018)/Season 3/poster.jpg
Resource not found: https://api.thetvdb.com/series/341663/images/query [404 Not Found]
Banner not found: /volume1/Media/TV Shows/Titans (2018)/Season 3/banner.jpg / seasonwide:seasonwide
Fanart already exists: /volume1/Media/TV Shows/Titans (2018)/clearart.png
Fanart already exists: /volume1/Media/TV Shows/Titans (2018)/logo.png
Fanart already exists: /volume1/Media/TV Shows/Titans (2018)/landscape.jpg
Fanart not found: /volume1/Media/TV Shows/Titans (2018)/Season 3/landscape.jpg / seasonthumb
Notify Plex: [host:localhost, token:xxxxxxxxxxxxx]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=xxxxxxxxxxxxxx
Clean clutter files and empty folders
Delete /volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/RARBG.txt
Delete /volume1/Media/Downloads/Media/Titans.S03E08.Home.1080p.HMAX.WEBRip.DD5.1.x264-NTb[rarbg]/RARBG_DO_NOT_MIRROR.exe
Done ヾ(@⌒ー⌒@)ノ