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

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
DarkKman
Posts: 2
Joined: 07 May 2025, 17:57

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

Post 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
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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
:idea: Please read the FAQ and How to Request Help.
DarkKman
Posts: 2
Joined: 07 May 2025, 17:57

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

Post 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 :)
Post Reply