Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

devster

macrumors newbie
Original poster
Sep 21, 2009
20
0
Hi

I've looked all over the internet to try and find a way to do the following :

Once my TV shows are downloaded I use Hazel to move them to a seperate folder. They are generally in the format :

the.voice.s05e09.720p.hdtv.x264-2hd.xxx

I then want some automated way to move these episodes onto a HDD in the directory structure HDD/TV Shows/Series/Season based upon the file name.

I am not keen on a command level option as I am not up to speed with that.
I would like to use an app or applescript to move the files into the correct place so my plex installation can scrape them

Many thanks
 
You on a mac or a PC?

On a mac, iFlicks, identify will do what you want. There's others also.

Can't help on a PC. MetaX? Or MetaZ?

And if you have iTunes preferences turned on to organise your library, it'll put them all in appropriate folders etc.
 
And if you have iTunes preferences turned on to organise your library, it'll put them all in appropriate folders etc.
I was about to give the same advice, but somehow I have the feeling OP wants just his movies sorted into folders without using iTunes.
I am personally using iTunes to manage my media and this folder tidy-up is a no-brainer.
 
I don't want to convert them, I just want to move them to another HDD so my Dune HD media player can play them. I'd like to automate the entire process.

I used iflicks a while ago to convert tv/movies for appletv but I no longer want to spend time converting formats.

I'm a Mac guy. There are more options for PC people.

I know some use Hazel app but I do not know how to set up the rules to parse the show name etc.

Gurus, please help !
 
SABnzbd + Sick Beard + CouchPotato + Headphones + PLEX is my ultimate setup.

SABnzbd organizes/renames my files for me, but Sick Beard (for TV shows, at least) can do it too and is actually probably better (I'm just too lazy to change it). Then of course PLEX takes it from there and presents to me the correct file name/format + metadata in an easy-to-use, friendly UI :)

EDIT: That was probably confusing; I'm actually suggesting Sick Beard, not SABnzbd, for organizing your TV show files.
 
Last edited:
SABnzbd + Sick Beard + CouchPotato + Headphones + PLEX is my ultimate setup.

SABnzbd organizes/renames my files for me, but Sick Beard (for TV shows, at least) can do it too and is actually probably better (I'm just too lazy to change it). Then of course PLEX takes it from there and presents to me the correct file name/format + metadata in an easy-to-use, friendly UI :)

EDIT: That was probably confusing; I'm actually suggesting Sick Beard, not SABnzbd, for organizing your TV show files.

+1 for Sickbeard.

I use Sickbeard for moving my TV shows from the download folder and organizing them exactly as the OP describes. Sadly, Sickbeard requires that you launch it from the terminal (i.e. command line) but once it is running, you are set.
 
Once my TV shows are downloaded I use Hazel to move them to a seperate folder. They are generally in the format :

the.voice.s05e09.720p.hdtv.x264-2hd.xxx

I then want some automated way to move these episodes onto a HDD in the directory structure HDD/TV Shows/Series/Season based upon the file name.

Luckily OSX ships with the most powerful language on Earth for doing such things....Perl

Here is a script I wrote that you can drop in the directory that has all your TV shows and it will parse the files into appropriate folders based on the filename. You can leave the show title naming convention the same or you can use underscores or spaces inbetween words, the script will accept any combination.

You will need to change 2 lines of code for your particular needs. The type of files to look for, which I have set to m4v and mkv, as well as the base directory to move the shows to. Don't worry, the script will tell you exactly where to change the lines of code, just open a text editor and follow the directions.

scr_1.gif


scr_2.gif


scr_3.gif


Download the zipped perl file. *** You may need to change permissions on the perl script in-able to execute it. If so open terminal, go to the folder it's in and type chmod a+rx move_shows.pl

Download Script

Then just rerun the script anytime new files are added that need to be sorted.

perl handbrake sort tv shows parse tv shows sort by season sort by sxxexx
 

Attachments

  • move_shows.pl.zip
    2 KB · Views: 145
Last edited:
Firstly thank you so much for your detailed explanation.

Here is what I did.

I downloaded the script and unzipped giving me the "move_shows.pl" file. I opened this with applescript and tried running it but got Syntax Error - expected end of line but found class name, at the first 'File' line of the script.

I then went back into terminal (getting a bit lost here) and ran the terminal command you included. When I clicked the .pl file again Numbers opened. I tried opening it with Applescript and got the same syntax error.

Any idea what I am doing wrong ??

I have been trying to run "filebot" from Hazel, and get it to rename the downloaded files as an alternative but cannot seem to get that to work either !

Your help is really appreciated.
 
I have exactly the same problem/need as devster. It would be ideal to do this all with Hazel.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.