Moving/Sorting Downloaded TV Shows

Discussion in 'Apple TV and Home Theater' started by devster, Oct 22, 2013.

  1. devster macrumors newbie

    Sep 21, 2009

    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 :

    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
  2. Omne666 macrumors 6502a

    Sep 16, 2010
    Melbourne, Australia
    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.
  3. priitv8 macrumors 68040

    Jan 13, 2011
    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.
  4. Omne666 macrumors 6502a

    Sep 16, 2010
    Melbourne, Australia
    If its movies he wants grouped into folders, he's outta luck., TV shows? Works a treat.
  5. devster thread starter macrumors newbie

    Sep 21, 2009
    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 !
  6. KylePowers, Oct 24, 2013
    Last edited: Oct 24, 2013

    KylePowers macrumors 68000


    Mar 5, 2011
    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.
  7. DaPhatty macrumors member

    Jul 12, 2008
    +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.
  8. westrock2000, Oct 27, 2013
    Last edited: Oct 27, 2013

    westrock2000 macrumors 6502a

    Oct 18, 2013
    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.




    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

    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

    Attached Files:

  9. devster thread starter macrumors newbie

    Sep 21, 2009
    Firstly thank you so much for your detailed explanation.

    Here is what I did.

    I downloaded the script and unzipped giving me the "" 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.
  10. mdutoit macrumors newbie

    Sep 28, 2009
    I have exactly the same problem/need as devster. It would be ideal to do this all with Hazel.
  11. Pyromonkey83 macrumors 6502

    May 24, 2009
  12. mdutoit macrumors newbie

    Sep 28, 2009

Share This Page