Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MASSIVELY messed up entire movie media folder locations . Any simple way to fix ?

Featured Replies

Hey fokes,

 

I had a lot of my movies as bare files saved directly within one folder, but for sonarr they need to be in a folder with the same named so I tried to use a script I found on the internet to do this but massively messed up my 3,000+ movie library.

 

The files are now stored in subfolders of the main folder with one word names like "after" for example, which would hold any movie folders with names starting with the word after. I need to move all of these subfolders back to the main folder else if I can't find a way I will have to delete my entire library and start over as I really messed up and don't know enough about scripts to do this. I assume it may be able to be fixed with a simple script but I really don't know enough to write one. Anything to point me in the right direction would be really really helpful. Thanks guys. 

 

Screenshot 2023-12-17 at 7.34.40 PM.png

Screenshot 2023-12-17 at 7.35.20 PM.png

Screenshot 2023-12-17 at 7.35.25 PM.png

Hi,

 

open Unraid console and go to /mnt/user/googledata/media/movies

 

Then use the following command => find . -mindepth 2 -type f -print -exec mv {} . \;

 

This will move all files from the subfolders of /movies/After, /movies/1, /movies/2, /movies/5th, etc. to /movies 

 

Duplicate filenames will be overwritten, so if you have same filesname for example /movies/After/Movie/File.mkv and /movies/After/Movie2/File.mkv it will end up with /movies/File.mkv (of previous folder Movie2)

 

You can create a testshare first with some subfolders and testfiles to see, if the command is what you are looking for.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.