September 7, 20178 yr 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
September 7, 20178 yr 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.
September 7, 20178 yr I did this in unRAID. Follow this link. https://forums.lime-technology.com/topic/48707-additional-scripts-for-userscripts-plugin/?do=findComment&comment=573858
September 7, 20178 yr @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
September 8, 20178 yr 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
Archived
This topic is now archived and is closed to further replies.