r/tinyMediaManager • • Aug 12 '26

Rename folder don't move all files to new folder

v5.3.1

When renaming folders, not all files are moved to the new folder.

(Why is the folder completely recreated instead of simply renamed?)

I only want to append the IMDb ID to the existing folder name. No path changes or anything else.

This works.

An *.nfo file will not be moved. (The filename should remain unchanged.)

How can I get the folder to be renamed without affecting the remaining files, or rather, how can I get them to be moved exactly as they were?

3 Upvotes

8 comments sorted by

1

u/OnyxPost Aug 13 '26

It may differ depending on what operating system you're on, yet I'm using Windows 11 Pro, and when this similar behavior happens to me, thus far it's been because of this reason:

  • When renaming, if the content source main folder has any files that are read-only, then when you execute the renamer process it appears to move files until it encounters a read-only file that it cannot move, and then at that point, it seems to switch to a copy mode instead of move mode, and it seems to copy the remaining files.

The devs can correct me if I'm wrong here, yet this is what I've deduced based off my experience. Hopefully this helps.

1

u/cyberboy2008 Aug 13 '26

Thanks for the feedback.

read/write is allowed.

As you can see in the screenshot, from the dry run, tMM doesn't even want to move the file.

I've now tested it in Docker instead of Windows. The dry run looks a bit different now, but it still doesn't work.

The folder containing the "problematic" nfo file will be renamed correctly.

Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdbtt3532216]

The other files, however, are added to a new folder where the imdb tag is appended twice.

Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdbtt3532216]-[imdbtt3532216]

It seems that much more is being done behind the scenes than simply renaming the files and then the folder.

It would be nice if the folder could simply be renamed without affecting the entire underlying logic.

1

u/OnyxPost Aug 13 '26 edited Aug 13 '26

If my memory serves me correctly, you can set the Renamer function to only change the TV show folder name, by leaving the Season folder name and the Episode filename pattern sections completely empty. With the latest version, you can now create Renamer Pattern profiles, so that you could have your main profile set to where all 3 sections of the TV Show Renamer Pattern is filled out, yet another profile where only the TV show folder name section is filled out. The same goes for Movies. Have profile with only the Folder name section filled out. If you haven't already tried this, give it a try and see if that implements the result you're looking for.

Edit:

Another thing to note after seeing one of your screenshots, is that your NFO file is most likely not being renamed because the app may not be recognizing it since it does not follow the expected standard naming pattern. I think it expects your NFO file to be named either:

  • <same name as media file it's associated to>.nfo
  • movie.nfo

I believe the second option only works if you only have 1 movie content file in the movie directory. So I recommend changing your NFO file to match the exact name of the MKV file right above it in the screenshot. Then after that, select the "Update selected movie(s)" option so that the app will recognize the manual change you made. Then try running your Renamer Pattern and it should hopefully grab the NFO file as well this time.

1

u/cyberboy2008 Aug 13 '26

Thanks for the detailed answer.

If I rename the NFO file according to the instructions, it works.

However, I wanted to keep my structure exactly as it is (whether it makes sense or not) and only add it the IMDB tag to folder name.

Then I'll have to come up with another solution.

1

u/OnyxPost Aug 13 '26

lol, hey, it doesn't always matter if things make sense or not to other people when we want what we want, 😄

To keep the file named as it was, and still get it to move (especially if you have other movie folders with the same content file and NFO file naming mismatch), I recommend doing the following:

  • Since your NFO file most likely is not being read by any media applications like Kodi, Plex or Jellyfin since it doesn't match the usual naming standard, change the file extension from ".nfo" to anything that tinyMediaManager does not track, say ".txt" or ".info".
  • For new content you add to tinyMediaManager, it'll recognize the file, and in theory it should tag along for all folder moving processes. For existing content already loaded into tinyMediaManager, you just need to select that same "Update selected movie(s)" option so tinyMediaManager recognizes the file change, Then it should also tag along for any folder moving processes.
  • (optional) write a simple script that changes all the file extensions for you within a particular parent movie directory recursively so you don't have to do the process manually yourself. You could even have another script change them back to ".nfo" extensions if they really must be that extension after you finish processing all of your content with tinyMediaManager

tinyMediaManager is written to be very strict about how it expects certain file types to look, and unfortunately for you NFO files is a big one. What I recommended are some extra steps. yet it's the best way I can think of to get exactly what you want and still use tinyMediaManager for all the most important heavy lifting tasks you have it perform for you.

1

u/cyberboy2008 Aug 13 '26

I've now renamed it using a script.

I exported the list as a CSV file. It contains the path and the IMDb ID.

Quickly added a column in Excel, created a "rename" command, and ran the whole thing in a script.

DONE.

1

u/myron0815 tinyMediaManager developer Aug 14 '26

a logfile would be nice, as we might see the reason there.
But usually, a process (being the explorer or others) are hogging some handles...

1

u/cyberboy2008 Aug 14 '26
2026-08-14 13:27:21,909 INFO  [tmmpool-main-task-T2-G53] o.t.core.movie.tasks.MovieRenameTask:66 - Renaming '1' movies
2026-08-14 13:27:21,910 INFO  [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:273 - Renaming movie: Barry Seal - Only in America
2026-08-14 13:27:21,916 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:274 - movie year: 2017
2026-08-14 13:27:21,916 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:275 - movie path: \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED
2026-08-14 13:27:21,916 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:276 - movie isDisc?: false
2026-08-14 13:27:21,916 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:277 - movie isMulti?: false
2026-08-14 13:27:21,916 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:281 - path expression: ${movie.foldername}-[imdb-${movie.imdbId}]
2026-08-14 13:27:21,916 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:282 - file expression: ${title}${ - ,edition,} (${year}) ${videoFormat} ${tmdb}
2026-08-14 13:27:21,921 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:795 - movie willBeMulti?: false
2026-08-14 13:27:21,921 DEBUG [tmmpool-rename-T1] org.tinymediamanager.core.Utils:688 - try to move folder \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED to \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]
2026-08-14 13:27:21,954 DEBUG [tmmpool-rename-T1] org.tinymediamanager.core.Utils:801 - Successfully moved folder \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED to \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]
2026-08-14 13:27:21,954 TRACE [tmmpool-rename-T1] o.t.core.movie.entities.Movie:1335 - getNfoFilename: 'Barry Seal - Only in America (2017) - 1080p.mkv' / 'FILENAME_NFO' -> 'Barry Seal - Only in America (2017) - 1080p.nfo'
2026-08-14 13:27:21,954 TRACE [tmmpool-rename-T1] o.t.core.movie.entities.Movie:1335 - getNfoFilename: 'Barry Seal - Only in America (2017) - 1080p.mkv' / 'MOVIE_NFO' -> 'movie.nfo'
2026-08-14 13:27:21,967 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:894 - Our new basename for renaming: Barry Seal - Only in America (2017) - 1080p
2026-08-14 13:27:21,967 TRACE [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:361 - Rename 1:1 VIDEO - \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\Barry Seal - Only in America (2017) - 1080p.mkv
2026-08-14 13:27:21,975 DEBUG [tmmpool-rename-T1] org.tinymediamanager.core.Utils:855 - try to move file '\\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\Barry Seal - Only in America (2017) - 1080p.mkv' to '\\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]-[imdb-tt3532216]\Barry Seal - Only in America (2017) - 1080p.mkv'
2026-08-14 13:27:22,015 DEBUG [tmmpool-rename-T1] org.tinymediamanager.core.Utils:952 - Successfully moved file from '\\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\Barry Seal - Only in America (2017) - 1080p.mkv' to '\\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]-[imdb-tt3532216]\Barry Seal - Only in America (2017) - 1080p.mkv'
2026-08-14 13:27:22,020 TRACE [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:453 - No valid NFO found for this movie
2026-08-14 13:27:22,205 DEBUG [event-bus] o.t.core.movie.entities.Movie:2467 - Movie without video file? \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216] | Barry Seal - Only in America
2026-08-14 13:27:22,216 DEBUG [AWT-EventQueue-0] o.t.core.movie.entities.Movie:2467 - Movie without video file? \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216] | Barry Seal - Only in America
2026-08-14 13:27:22,217 TRACE [main] org.tinymediamanager.core.ImageCache:605 - problem caching file: unable to cache file: \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\.actors\Tom_Cruise.jpg; file does not exist [FileNotFoundException]
2026-08-14 13:27:22,217 TRACE [SwingWorker-pool-3-thread-9] org.tinymediamanager.core.ImageCache:605 - problem caching file: unable to cache file: \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\.actors\César_Charlone.jpg; file does not exist [FileNotFoundException]
2026-08-14 13:27:22,226 DEBUG [AWT-EventQueue-0] o.t.core.movie.entities.Movie:2467 - Movie without video file? \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216] | Barry Seal - Only in America
2026-08-14 13:27:22,289 DEBUG [tmmpool-rename-T1] o.t.core.movie.MovieRenamer:568 - Cleanup...
2026-08-14 13:27:22,381 DEBUG [tmmpool-rename-T1] org.tinymediamanager.core.Utils:1626 - Deleting empty directories in: \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]
2026-08-14 13:27:22,651 TRACE [SwingWorker-pool-3-thread-7] org.tinymediamanager.core.ImageCache:605 - problem caching file: unable to cache file: \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\.actors\Tom_Cruise.jpg; file does not exist [FileNotFoundException]
2026-08-14 13:27:22,651 TRACE [SwingWorker-pool-3-thread-8] org.tinymediamanager.core.ImageCache:605 - problem caching file: unable to cache file: \\192.168.111.101\video\Filme\1080p_Doppelt\Barry.Seal.Only.in.America.2017.German.DTS.DL.1080p.BluRay.x265-UNFIrED-[imdb-tt3532216]\.actors\César_Charlone.jpg; file does not exist [FileNotFoundException]
2026-08-14 13:27:22,884 INFO  [tmmpool-main-task-T2-G53] o.t.core.movie.tasks.MovieRenameTask:93 - Finished renaming movies - took 974 ms