The show downloading stack - part n+1
I’ve already mentioned my show downloading stack on this blog. It’s
changed a bit since - I now use Transmission
rather than rtorrent, as it has the excellent transmission-daemon package
which has it acting exactly the way I like (without using screen). Also, it
now E-mails me when a torrent is done downloading. So while this may be how TV
works for you:
- Notice that a new episode is out
- Torrent it
- Wait for the download to finish
- Watch it
…this is how TV works for me now:
- Receive E-mail notification of a new downloaded episode
- Watch it
Here’s how it’s done: First, write /usr/local/bin/notify_torrent_done:
| |
The various environment variables will be set by transmission when it calls
this script. We rerun msmtp until it succeeds because you will often get a
“connection timed out” response from gmail (…at least on my ISP…). Here’s
/etc/msmtprc.transmission which is relevant to gmail (this is a bit tricky
and took a lot of fiddling around with):
| |
As usual, caution is required when saving your password in plaintext. I highly recommend using Google’s two-step authentication, which will have you creating a one-time password for each application - use one of those one-time passwords here.
Finally, in /etc/transmission-daemon/settings.json, add the following code:
| |
Important: You need to run /etc/init.d/transmission-daemon reload at
this point, not restart - that would cause settings.json to be
rewritten from runtime configuration.
That’s it. Enjoy!