Matt Coneybeare


Automatically Sorting Downloaded Television Episodes From Transmission

| Comments

If you were to download torrents of television shows frequently, you would probably find that manually sorting the episodes into your media center directories was tiresome. For this hypothetical situation, I thought of an automated solution to the problem so manual sorting wouldn’t be required.

It works by having Transmission run the script after an episode has been downloaded. It then scans the location where downloaded episodes go, attempts to match it to the show on your system, finds the right season to put it in, moves the file into that season folder, then removes the torrent from Transmission.

The script is fairly conservative in that it won’t move anything, delete anything or create anything if it isn’t pretty sure about the match.

Check out the script below.


  • You are using Transmission to download torrents
  • You have a directory structure that looks like
    /path/to/Television/[SHOW NAME]/[SEASON X]/[VIDEO FILE]

Setup Instructions

  1. In Transmission, enable the remote. Turn off the password, but only allow IP’s from your local router (192.168.1.* for example)
  2. Download the file below, edit to fit your setup, then save somewhere
  3. Make the file executable by doing a chmod +x [FILE]
  4. In Transmission, add a script to run after download in the app preferences. Point it to where you saved the script.

Automatic Transfer Script

The script is located on github as a gist, so if you see room for improvement, please submit your changes.


My name is Matt Coneybeare, I design and develop for the web, iOS (iPhone, iPad and iPod Touch), and MacOS out of New York City. In 2008 I started a software company called Urban Apps that has made some pretty popular apps such as Ambiance and Hourly News. In 2019, I joined the team at Ticket Evolution as a Senior Software Engineer. My current Stack Overflow reputation is about 27k.

I was a Rockstar a decade ago, but then went back to school and collected a Bachelor's Degree in Computer Science from U.C. Berkeley and a MBA from Quantic. Now I am settled down with my beautiful wife Di and our dog Hamachi. When not at my desk, I love exploring New York City as a Yelp Elite, or training for marathons.

Contact information

Matt Coneybeare