Move Episode Script

After posting my Reruns script I thought more about what other repetitive tasks I’m constantly performing on my media and the one that stuck out is organizing my files. So I decided to write another Python script to automate moving TV episodes after you finish encoding or downloading them.

So rather then typing:

mv the.office.us.s04e10.HDTV-foo.avi ~/TV/the.office.us/season.4/

and hoping that the directory structure already exists for that show and season, I can now type:

python mvep.py the.office.us.s04e10.HDTV-foo.avi

and the directories will be created for me. I know its simple, but its tedious to do all the time.

Plus, this way files are moved into a directory structure that is readable by XBMC scrapers, so moved files will be picked up during the next library update.

Right now it only supports filenames in the following formats, but could easily be extended:

  • the.office.us.s04e10.HDTV-foo.avi
  • the.office.us.410.HDTV-foo.avi

DOWNLOAD


Details