Page 1 of 1

Create folder from movie filename (and copy) and ignore other subfolders

Posted: 07 May 2025, 18:34
by DarkKman
Hi folks. I've just got hold of Filebot Node in QNAP NAS and running some tests. My use case is actually quite simple (I don't need to pull any meta data etc). I use Plex and already have all the files imported (regardless of my initial failure to follow Plex guidelines - to be fair this was yeeeeeears ago this started). I am now using Radarr and would like to import my current library in there to manage as I need.

Current situation: I have a folder in QNAP which has all my movies in. *Some* of these movies are already in subfolders but most of the files are not e.g.

Code: Select all

Root folder
   - Movie Folder 1
      - Movie 1.avi
   - Movie Folder 2
      - Movie 2.mkv
   - Movie 3.mp4
   - Movie 4.mp4
Use Case: Run Filebot Node to create a sub-folder (for only files not in a sub-folder already) using the filename in the same root folder and copy the movie into the corresponding sub-folder. As I already have plex pointed at this Root folder I really would ideally not create another folder. So the end result would be;

Code: Select all

Root folder
   - Movie Folder 1
      - Movie 1.avi
   - Movie Folder 2
      - Movie 2.mkv
   - Movie Folder 3
      - Movie 3.mp4
   - Movie Folder 4
      - Movie 4.mp4
I've currently tried a very basic test selecting Input Folder=Root, Input Type=Movies, Action=move and rename, Output folder = Root, Episode Order = Airdate (not sure if this is important for my use case), Format Options = all blank/default. But I find this always adds a "Movies" sub folder e.g.

Root/Movies/Movie Folder 1 etc or the actual test results for a simple scenario below

Code: Select all

[TEST] from [/share/QNAPARCHIVE/New Movies/99.Homes.2014.720p.BluRay.H264.AAC-RARBG/99.Homes.2014.720p.BluRay.H264.AAC-RARBG.mp4] to [/share/external/DEV3301_1/New Movies/Movies/99 Homes (2015) {tmdb-283235}/99 Homes (2015).mp4]
[TEST] from [/share/QNAPARCHIVE/New Movies/Alita - Battle Angel (2019).avi] to [/share/external/DEV3301_1/New Movies/Movies/Alita - Battle Angel (2019) {tmdb-399579}/Alita - Battle Angel (2019).avi]
Processed 2 files
Can anyone help?
1. Create sub-folder from Movie name and copy movie into the sub folder (still within Root with no extra sub-folders being created)
2. Ignore any existing sub-folders

Thanks in advance

Re: Create folder from movie filename (and copy) and ignore other subfolders

Posted: 07 May 2025, 20:02
by rednoah
:!: FileBot Node is a wrapper for the amc script and thus very much ill-suited for a simple "move files into folders using the file name as folder name" type of use case. As far as a "Movies" folder being generated, that's because the default format is {plex.id} which generates target file paths that start with "Movies". See Change how files will be organized and renamed for help with that.


:idea: Your use case is [Plain File Mode] Batch Rename any type of file › Move files into a new folders based on the file name type use case. Using the Desktop application is strongly recommended. You can move / rename files on the NAS via a network drive from your Desktop. If you must do things on device then I recommend using the command-line via SSH.


:arrow: File to Folder Name is a built-in Preset so it's straight-forward:

ScreenshotScreenshot

Re: Create folder from movie filename (and copy) and ignore other subfolders

Posted: 08 May 2025, 00:07
by DarkKman
Crikey... I didn't think of that. Downloaded the Windows app and used SMB to access my NAS storage and it was indeed a breeze! ~3000 files done in the time it took me to make a coffee. Thanking you kindly :)