squirrellydw Posted September 7, 2017 Share Posted September 7, 2017 How can I easily move all my movies into new folders that are named as my moves? For example all my movies all under a folder called Moveis but I would like them to be in a Folder and then the Movie but I want the folder to be names the same as the Movie? I'm using a Mac. Thanks Quote Link to comment
1812 Posted September 7, 2017 Share Posted September 7, 2017 Connect via smb from the mac to the share folder containing movies. make new folders with movie titles. drag movies with matching titles into folders. thats pretty easy. Quote Link to comment
wisem2540 Posted September 7, 2017 Share Posted September 7, 2017 I use TheRenamer for TV shows. I think it works on movies too Quote Link to comment
Squid Posted September 7, 2017 Share Posted September 7, 2017 Tons of hits for doing this over the network from Windows / Mac Quote Link to comment
kizer Posted September 7, 2017 Share Posted September 7, 2017 I did this in unRAID. Follow this link. https://forums.lime-technology.com/topic/48707-additional-scripts-for-userscripts-plugin/?do=findComment&comment=573858 Quote Link to comment
kizer Posted September 7, 2017 Share Posted September 7, 2017 @squirrellydw Here is the code I currently use in one of my projects that runs nearly hourly to take the output of a Handbrake job and move it to its finally location Spaces Removed and replaced with a . and dropped into a folder that has the file name as its on. Transformers.(2007)(1080).mp4 will become Transformers.(2007)(1080)/Transformers.(2007)(1080).mp4 #!/bin/bash find /mnt/user/HandBrake/ZZZZZ -maxdepth 1 -type f -mmin +5 -exec mv {} /mnt/user/HandBrake/ZZZZZ/move2travel/ \; #Remove Spaces and throw into move2travel folder cd /mnt/user/HandBrake/ZZZZZ/move2travel/ for f in *\ *; do mv "$f" "${f// /.}"; done #Create Folder from name and move to final location. File types editable below. We don't like spaces so the above had to work. for FILE in `ls /mnt/user/HandBrake/ZZZZZ/move2travel/ | egrep "mkv|mp4|avi|vob|iso|MKV|MP4|AVI|VOB|ISO"` do DIR=`echo $FILE | rev | cut -f 2- -d '.' | rev` mkdir /mnt/disks/TOWER_Travel/$DIR mv /mnt/user/HandBrake/ZZZZZ/move2travel/$FILE /mnt/disks/TOWER_Travel/$DIR done 1 . First line moves all files, but insures that a file hasn't been touched for at least 5minutes because HandBrake might be processing it and I didn't want this script to move a file being written to. 2. Now to give you a clue what is going on . I created couple of folders. move2travel which is a temporary folder that pulls from a folder named ZZZZZ to remove spaces before it removes all spaces and then shovels it off to its final destination folder which I called TOWER_Travel Anyways if you need any help or have any questions on my Bubble Gum, Duct Tape coding skills feel free to ask away. This code Does not like Spaces so I had to remove them. HandBrake Share /dump /ZZZZZ /ZZZZZ/move2travel Move Share /HD /Travel aka SD versions Quote Link to comment
squirrellydw Posted September 8, 2017 Author Share Posted September 8, 2017 thanks guys Quote Link to comment
DZMM Posted September 8, 2017 Share Posted September 8, 2017 Install couch potato and use its renamer function - set its watchfolder to your current folder and set the destination wherever you want and whatever file/folder naming structure you want Quote Link to comment
Recommended Posts
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.