My output folder is labeled a file on Synology

All your suggestions, requests and ideas for future development
Post Reply
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

My output folder is labeled a file on Synology

Post by BelugaManta »

I have been running Filebot node for years and have a paid lifelong subscription. I have recently noticed that my Unsorted folder was 1.4gb so clicked on it and found that text editor was opening then giving me an error that it was larger than the 10mb allowed. When I went back and checked it is showing as a file not a folder! I have a screenshot just can't work out how to add it, sorry.
My format is

Format: Select all

/volume1/video/Unsorted/{n}
Paul.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My output folder is labeled a file on Synology

Post by rednoah »

:arrow: Please read How can I share screenshots? if you need help with posting screenshots.

:?: What does the log file say when files are processed into your Unsorted folder? If that file path is somehow an existing file, and not a folder, then processing Unsorted files will almost certainly fail with an error message of some kind.
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: My output folder is labeled a file on Synology

Post by BelugaManta »

OK, finally got everything together (I hope). After running FIlebot node with unsorted files. It recreated the file so I deleted the file and I created a folder named Unsorted (Same naming scheme as in filebot node instructions). Screenshot then I ran filebot node and the log is below:-

Console Output: Select all

Run script [fn:amc] at [Mon Nov 06 08:19:45 EST 2023]

[PSA] Important Discussion of Changes effective as of 28 Apr 2023:
https://www.filebot.net/forums/viewtopic.php?t=13406

Parameter: music = y
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = eng
Parameter: clean = y
Parameter: skipExtract = y
Parameter: seriesFormat = /volume1/video/TV Show/{n}/{episode.special ? 'Special' : 'Season '+s}/{episode.special ? 'S00E'+special.pad(2) : sxe.pad(2)} - {t}
Parameter: movieFormat = /volume1/video/Movies/{n} {y}/{n}
Parameter: musicFormat = /volume1/music/{n}
Parameter: unsortedFormat = /volume1/video/Unsorted/{n}
Parameter: excludeList = /volume1/video/amc-input.txt
Argument[0]: /volume1/homes/admin/Downloads
Use excludes: /volume1/video/amc-input.txt (0)
Ignore system path: /volume1/homes/admin/Downloads/@eaDir
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/11. Holy Ground (Taylor's Version).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/15. Starlight (Taylor's Version).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/16. Begin Again (Taylor's Version).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/18. Come Back...Be Here (Taylor's Version).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/19. Girl At Home (Taylor's Version).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/23. Nothing New (Taylor's Version) (From The Vault).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/24. Babe (Taylor's Version) (From The Vault).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/25. Message In A Bottle (Taylor's Version) (From The Vault).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/27. Forever Winter (Taylor's Version) (From The Vault).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/28. Run (Taylor's Version) (From The Vault).mp3
Input: /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/29. The Very First Night (Taylor's Version) (From The Vault).mp3
Group: {Music=/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️} => [11. Holy Ground (Taylor's Version).mp3, 15. Starlight (Taylor's Version).mp3, 16. Begin Again (Taylor's Version).mp3, 18. Come Back...Be Here (Taylor's Version).mp3, 19. Girl At Home (Taylor's Version).mp3, 23. Nothing New (Taylor's Version) (From The Vault).mp3, 24. Babe (Taylor's Version) (From The Vault).mp3, 25. Message In A Bottle (Taylor's Version) (From The Vault).mp3, 27. Forever Winter (Taylor's Version) (From The Vault).mp3, 28. Run (Taylor's Version) (From The Vault).mp3, 29. The Very First Night (Taylor's Version) (From The Vault).mp3]
Rename music using [ID3 Tags]
Processing 11 unsorted files
[AUTO] Delete [/volume1/video/Unsorted]
[MOVE] from [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/11. Holy Ground (Taylor's Version).mp3] to [/volume1/video/Unsorted]
[AUTO] Delete [/volume1/video/Unsorted]
[MOVE] from [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/15. Starlight (Taylor's Version).mp3] to [/volume1/video/Unsorted]
[AUTO] Delete [/volume1/video/Unsorted]
[MOVE] from [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/16. Begin Again (Taylor's Version).mp3] to [/volume1/video/Unsorted]
[AUTO] Skipped [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/18. Come Back...Be Here (Taylor's Version).mp3] because [/volume1/video/Unsorted] already exists
[AUTO] Skipped [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/19. Girl At Home (Taylor's Version).mp3] because [/volume1/video/Unsorted] already exists
[AUTO] Delete [/volume1/video/Unsorted]
[MOVE] from [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/23. Nothing New (Taylor's Version) (From The Vault).mp3] to [/volume1/video/Unsorted]
[AUTO] Skipped [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/24. Babe (Taylor's Version) (From The Vault).mp3] because [/volume1/video/Unsorted] already exists
[AUTO] Skipped [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/25. Message In A Bottle (Taylor's Version) (From The Vault).mp3] because [/volume1/video/Unsorted] already exists
[AUTO] Delete [/volume1/video/Unsorted]
[MOVE] from [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/27. Forever Winter (Taylor's Version) (From The Vault).mp3] to [/volume1/video/Unsorted]
[AUTO] Skipped [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/28. Run (Taylor's Version) (From The Vault).mp3] because [/volume1/video/Unsorted] already exists
[AUTO] Skipped [/volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/29. The Very First Night (Taylor's Version) (From The Vault).mp3] because [/volume1/video/Unsorted] already exists
Processed 5 files
Clean clutter files and empty folders
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/18. Come Back...Be Here (Taylor's Version).mp3 (not clutter)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/19. Girl At Home (Taylor's Version).mp3 (not clutter)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/24. Babe (Taylor's Version) (From The Vault).mp3 (not clutter)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/25. Message In A Bottle (Taylor's Version) (From The Vault).mp3 (not clutter)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/28. Run (Taylor's Version) (From The Vault).mp3 (not clutter)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/29. The Very First Night (Taylor's Version) (From The Vault).mp3 (not clutter)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️/Taylor Swift - Red (Taylor's Version).jpg (parent folder contains media files)
Keep /volume1/homes/admin/Downloads/Taylor Swift - Red (Taylor's Version) (2021) Mp3 320kbps [PMEDIA] ⭐️ (not empty)
Keep /volume1/homes/admin/Downloads (root folder)
Done ヾ(@⌒ー⌒@)ノ
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: My output folder is labeled a file on Synology

Post by BelugaManta »

After the file is run it shows as Unsorted as a file again. Screenshot?
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: My output folder is labeled a file on Synology

Post by BelugaManta »

This is the script I am using in case there is an error in that I missed.
I have been using it for years, but rarely d/load music or get unsorted files apparently.

Format: Select all

filebot -script 'fn:amc' /volume1/homes/admin/Downloads --output /volume1/video/ --action move -non-strict --order Airdate --conflict auto --lang en --def 'music=y' 'unsorted=y' 'artwork=y' 'subtitles=eng' 'clean=y' 'skipExtract=y' 'seriesFormat=/volume1/video/TV Show/{n}/{episode.special ? '\''Special'\'' : '\''Season '\''+s}/{episode.special ? '\''S00E'\''+special.pad(2) : sxe.pad(2)} - {t}' 'movieFormat=/volume1/video/Movies/{n} {y}/{n}' 'musicFormat=/volume1/music/{n}' 'unsortedFormat=/volume1/video/Unsorted/{n}' 'excludeList=/volume1/video/amc-input.txt' --apply refresh --log all --log-file '/var/packages/filebot-node/var/filebot.log'
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My output folder is labeled a file on Synology

Post by rednoah »

I see. We are talking about *.mp3 files without ID3 tags.

:arrow: You'll want to use {fn} file name to always give you the file name:

Format: Select all

/volume1/video/Unsorted/{fn}
:!: {n} can have different meanings, movie name, series name, artist name, file name. In this case, {n} seems to be the artist name, which is undefined, which results in your custom format inadvertently yielding /volume1/video/Unsorted as target file path.

:!: I recommend not using a custom Unsorted format. The default works best and is well-tested.




EDIT:

:!: In the context of --def unsortedFormat all meta object bindings including {n} are always undefined, as there is no match. /volume1/video/Unsorted/{n} never works. You're just writing the "unsortable files" to the same file path (there can only be one) and --conflict auto and made sure that the largest "unsortable file" got the spot. The large file was probably some large movie file.
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: My output folder is labeled a file on Synology

Post by BelugaManta »

Ahh, OK, that may have been a copy /paste typo or something when I entered {n} instead of {fn}.

Thank you for the swift response.
Paul.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: My output folder is labeled a file on Synology

Post by rednoah »

Note that --def unsortedFormat works bit differently from the other format in that it expects the complete file path. If you run tests then you may find that {fn} removes the extension, thus renaming files to target file paths without file extension.

e.g. generate the Unsorted file path you want:

Format: Select all

/volume1/video/Unsorted/{f.name}

Format: Select all

/volume1/video/Unsorted/{fn}.{ext}
:idea: Please read the FAQ and How to Request Help.
BelugaManta
Posts: 15
Joined: 26 Dec 2014, 01:50

Re: My output folder is labeled a file on Synology

Post by BelugaManta »

rednoah wrote: 07 Nov 2023, 08:37 Note that --def unsortedFormat works bit differently from the other format in that it expects the complete file path. If you run tests then you may find that {fn} removes the extension, thus renaming files to target file paths without file extension.

e.g. generate the Unsorted file path you want:

Format: Select all

/volume1/video/Unsorted/{f.name}

Format: Select all

/volume1/video/Unsorted/{fn}.{ext}
K, thank you for that extra clarification. The previous files have been now sorted so I will update the script and keep an eye out in future. Thank you for that.
Paul.
Post Reply