Skip to content

November 5, 2012

2

Managing tv series from the console

I’ve still not posted about my awesome terminal configuration, but I’ll be making that completly irrelevant today with my awesome way to handle tv series in the terminal.

 

First of all, we’ll need deluge, flexget, tree and subdownloader, all of them are available at debian’s standard repository

apt-get install subdownloader flexget tree deluged deluge-console

Just to clarify, I’m going to use a online rss service to get my torrents updates, and deluge with ui console for controlling its download, so, we make ourselves a showrss account and we add all our favourite series

Then get our rss link and create a flexget config like this one:

1 2 3 4 5 6 7 8 9 10
presets:
tv:
regexp:
accept:
- torrent
deluge: yes
tasks:
showrss:
rss: http://showrss.karmorra.info/rss.php?user_id=104638&hd=0&proper=0&namespaces=true&magnets=true
preset: tv
view raw gistfile1.txt This Gist brought to you by GitHub.
That will just pass it to deluge

For that, we have to start deluged first, then flexget, and finally get the subtitles

1
deluged & { flexget && sleep 1m && subdownloader -cli -l en; } &
view raw gistfile1.sh This Gist brought to you by GitHub.

Personally, after downloading something I put it into its series name’s folder, after I watch it, I classify into its season. This way I can keep a clean tree of series chapters pending to watch with a simple tree command:

tree -L 2 -P "mp4|mpg|*avi"

And, if i want a random series…

a=(); mplayer "$(find ${a[ $[ ( $RANDOM % ${#a[@]} ) + 1 ] - 1 ]}/|tail -n1)"

 

Read more from Misc
2 Comments Post a comment
  1. Juan Antonio Rafael Raul Sarrasqueta
    Mar 2 2013

    i cant watch programa MAGACIN with this script?

    Reply
    • You can watch any program that’s available via showrss…
      Or you could adapt it to use another provider.

      Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments