Filebot Node Not Deleting Clutter Folders DSM7

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Kristof13
Posts: 2
Joined: 16 Sep 2021, 08:24

Filebot Node Not Deleting Clutter Folders DSM7

Post by Kristof13 »

I have been using a mostly automated setup with Download Station > filebot > Plex for a few years now without an issues that I couldnt resolve with a few searches, but this one I cant seem to find a solution for.

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 :) Here's the latest log

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 ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot Node Not Deleting Clutter Folders DSM7

Post by rednoah »

1.
You have hidden @eaDir in some of your folders which prevent them from being deleted:

Code: Select all

Ignore system path: /volume1/Media/Downloads/Media/@eaDir
...

:arrow: Please read this thread for details: viewtopic.php?t=12765





EDIT:


2.
On an unrelated note, you're passing incorrect format values:

Code: Select all

Bad seriesFormat value: "..."
Bad movieFormat value: "..."
:!: If the seriesFormat / movieFormat parameters start / end with "..." then you're doing something wrong. "..." is a command-line thing. If you're using the FileBot Node WebUI, then you should not and must not command-line quote / command-line escape format expressions.


e.g. YES

Code: Select all

Parameter: seriesFormat = {plex}
e.g. NO

Code: Select all

Parameter: seriesFormat = "{plex}"
:idea: Please read the FAQ and How to Request Help.
Kristof13
Posts: 2
Joined: 16 Sep 2021, 08:24

Re: Filebot Node Not Deleting Clutter Folders DSM7

Post by Kristof13 »

Thank you for the super fast reply, rednoah!

First time I'd even heard of @eadir, but a little reading and logic lead me to check the Synology Indexing Service and the Downloads dir was being indexed which I assumed was creating the @eadir. Disabled it for the downloads dir, gave it a test and it's all working! Hope this helps someone else.

Fixed the rest too...no quotes now :)
Post Reply