Strange output nested folder

All your suggestions, requests and ideas for future development
Post Reply
Al3x
Posts: 19
Joined: 19 Aug 2014, 19:32

Strange output nested folder

Post by Al3x »

FileBot created a nested folder for some odd reason? I didn't know what happened at some point, so I just tried to get FileBot to take another run at it and it still created a nested folder, even though the source was not nested. The command, directory structure before, and directory structure after is below:

Code: Select all

filebot -script fn:amc --output "X:/Media" --log-file amc.log --action move --conflict auto -non-strict "X:/Temp/Reorganize" --def music=y subtitles=en artwork=y plex=adesktop storeReport=y deleteAfterExtract=y clean=y unsorted=y "movieFormat=X:/Media/Movies/{n} ({y}) {imdb.rating}/{n} ({y}) {imdb.rating} {source} {resolution}" "seriesFormat=X:/Media/TV/{n}/{'Season '+s}/{n} - {s00e00} - {t}"
Source directory:
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\movie.nfo
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\Edge of Tomorrow (2014) 8.0 BluRay 1920x800.mp4
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\Edge of Tomorrow (2014) 8.0 BluRay 1920x800.srt
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\disc.png
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\poster.jpg
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\folder.jpg
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\logo.png
X:\Temp\Reorganize\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\fanart.jpg
Target directory output:
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\movie.nfo
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\disc.png
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\poster.jpg
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\folder.jpg
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\logo.png
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\fanart.jpg
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\movie.nfo
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\Edge of Tomorrow (2014) 8.0 BluRay 1920x800.mp4
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\Edge of Tomorrow (2014) 8.0 BluRay 1920x800.srt
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\disc.png
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\poster.jpg
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\folder.jpg
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\logo.png
X:\Media\Movies\Edge of Tomorrow (2014) 8.0\Edge of Tomorrow (2014) 8.0 BluRay 1920x800\fanart.jpg
User avatar
rednoah
The Source
Posts: 19584
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strange output nested folder

Post by rednoah »

Folders that contain movie.nfo files will be considered as a single unit, thus the folder will be the target of renaming rather than the media file.

So you can't run amc on folders that have already been organized with artwork.

If you want to force process files you need to pass the files directly rather than the parent folder.
:idea: Please read the FAQ and How to Request Help.
Al3x
Posts: 19
Joined: 19 Aug 2014, 19:32

Re: Strange output nested folder

Post by Al3x »

I'm confused. This exact process has worked for several other folders with a movie.nfo in it I believe. The movie.nfo file and all other related files are all in the same directory...so why would it output a folder with movie.nfo and then another sub folder with movie.nfo?
User avatar
rednoah
The Source
Posts: 19584
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strange output nested folder

Post by rednoah »

This could never have worked.

If the folder is considered a "single unit" (e.g. disk folders, folders with movie.info + artwork, etc) the folder will be processed as if it's a file. And since your format doesn't take that into account, it'll add another folder level, as per your format, and then it'll of course fetch new artwork.

I will modify the amc script to simply ignore any folders that already have artwork then. What you're doing is not supported, so you'll get undefined behaviour.
:idea: Please read the FAQ and How to Request Help.
Post Reply