Sickbeard with Integrated Torrent Client

Sickbeard Integrated Torrent ClientI’ve included a torrent client in my torrent-friendly fork of Sickbeard. The UI is a little limited at the moment, but it’s been wiping the floor with both Transmission and uTorrent here for the last few days in terms of download speed, so I think it’s ready to be set loose on the world.

To enable it, you’ll first need to install libtorrent rasterbar (version 0.16 or later), and its python bindings.

If you do not have an already-running copy of this fork, just follow the general installation instructions.

Otherwise:

For debian derivatives: (i.e. Ubuntu, mint, etc)
sudo apt-get install python-libtorrent

That could hardly be much simpler now could it?

For OSX:
You’ll need to do a little compiling I’m afraid.

This post includes all the required details.

For Windows: (yes, for once I haven’t forgotten about you!)
Go here, and download the .msi which matches your version of python (probably either py27 or py26).
Pick a recent version – the older ones won’t work with magnet links.

Another OS:?
If your OS doesn’t come with a packaged version of libtorrent rasterbar and its python bindings (and note that most will!), then you’ll probably need to build from source.
svn co https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/trunk/ lt/
cd lt/
./autotool.sh
./configure --enable-python-binding
make
sudo make install
sudo ldconfig

Once you have installed the above, restart Sickbeard, go to Config -> Search Settings -> Torrent Method, and change it to “Integrated”.

Any OS-specific tweaks you wish to share? Please note them in the comments.

Notes:

  • Is libtorrent installed? What version do I have?
    python -c "import libtorrent as lt; print lt.version" will tell you very quickly. You should get a response like 0.16.9.0 – if you get an error, or a version less than 0.16, this is likely to be your issue.
  • All my torrents are stuck at “downloading_metadata”: for dht to work (and hence for metadata to be available), the torrent client needs at least one valid peer to exchange data with, but if all your downloads are trackerless magnets, it won’t have one. Try adding a torrent manually (using either a magnet link with trackers, or a link to a .torrent file). You can delete the added torrent as soon as metadata begins to download. [Note: This issue should be resolved with recent releases]
  • Having other Issues? Check out this post (and read through the comments) to see if someone else has addressed it.
  • Still having Issues? Check out the github issue tracker. Please search the existing issues before creating a new one, and include a debug log in any new issues! (you can censor it beforehand if you feel the need)
  • It looks like ubuntu 12.04 installs libtorrent 0.15.x by default, which is a little too outdated for use here. So, if you are a 12.04 user, you’ll either need to build from source, or find a ppa with a more recent version (please post any suggestions in the comments). Thanks go to Chris for pointing this out.

    Update (with thanks to Dennis): This repo appears to have all the needed packages.

, , ,

25 Comments

Building Libtorrent-rasterbar on OSX

Compiling Rasterbar Libtorrent on OSX 10.7 or 10.8 (tested on both 10.7.5 and 10.8.4), without brew and all the crap it brings with it.

First, you’ll need to install XCode, and command-line tools.
Then, you’ll need to download and build boost:

http://www.boost.org/users/download/

Click on ‘Download’, and download the latest .tar.gz. In my case this was boost_1_53_0.tar.gz

tar -zxvf boost_*.tar.gz
cd boost_*
./bootstrap.sh
./b2
sudo ./b2 install

This all ran cleanly in my case, but googling would seem to imply that it often gives errors.
Next, download the libtorrent source:

http://code.google.com/p/libtorrent/downloads/list

And again, download the latest .tar.gz. In my case this was libtorrent-rasterbar-0.16.9.tar.gz

tar -zxvf libtorrent-rasterbar-0.16.9.tar.gz
cd libtorrent-rasterbar-0.16.9
./configure --enable-python-binding
make
sudo make install

That should be it, but in my case for some reason the python bindings were put into /usr/local/lib/python2.6/site-packages/ (where the correct site-packages is in fact /Library/Python/2.6/site-packages). I’m not really sure why this happened, but it’s easy enough to fix. Continuing from where we were above:
cd bindings/python
sudo python setup.py install

And it gets the correct directory this time around.

,

No Comments

DailyTvTorrents gone

Just a few hours ago, dailytvtorrents.org disappeared, replaced with the message:

Yay!
2013-04-25: Sorry guys, our hosting provider kicked us out so we have to be offline for now. I’m very busy nowadays and I don’t have time to look for a new place. If you think you know a solution you can reach me here: richard@dailytvtorrents.org.
Until then, it was a nice ride. :–)
Ps: you can check this page from time to time, I will try to keep you updated when I know more. I got some really nice email, thank you guys.

For a time this was probably the best TV torrent site on the web, well-categorised, always current, and with a decent backlog. It’s sad to see it go.

For the present I’ll leave it as part of my Torrent-friendly Sick-beard fork. Users can simply uncheck it on the ‘Search Providers’ page.

My thanks to Richard and all at DailyTvTorrents.org for a wonderful service over the last few months. Hope this isn’t the end for you.

,

No Comments

Sickbeard Manual RSS/Custom Torrent Providers

Custom RSS Torrent feedI’ve added experimental support for Custom RSS torrent feeds into my sickbeard fork.

The whole thing should be self-explanatory I think. Currently I use the following feeds myself:

  • TPB – TvTeam: http://rss.thepiratebay.se/user/7e434ea6455f089db7f0291b3bd1d4db
  • TPB – VTV: http://rss.thepiratebay.se/user/e395935fa39597e3997b916a295f23e4
  • TPB – ettv: http://rss.thepiratebay.se/user/0e3b2f46e5892dc5b2aac6dbe548bc27

These are links to the rss feeds for specific users on thepiratebay.se.
Obviously any rss feed that includes links to download torrent files (or public magnet links) will work also.
(Please feel free to recommend others in the comments)

Consider this experimental for now. It works for me, but I can’t guarantee that it will work for anyone else.

Check out this post for more details about this fork.

,

2 Comments

Netatmo Menu Bar app for OSX

Netatmo Menu Bar ScreenshotFor some peculiar reason, Netatmo don’t have an OSX app for viewing their devices (however their iOS one is simply brilliant). So, me being me, I wrote one. Very simple app to put together in fact (but then, it doesn’t do all the fancy history stuff that the iOS one does).
Read the rest of this entry »

,

No Comments

Sickbeard + iPlayer: requirements

BBC iPlayer LogoI’ve just merged the iplayer branch of my Sickbeard fork into master, as it’s been working ok for me for the last few days, and I think it’s ready for some others to check it out.

But, be warned: it has prerequisites. In short, these are:

  • Perl: any *nix will have this
  • ffmpeg:
    • On linux, you probably just need to do sudo apt-get install ffmpeg (or whatever the rpm equivalent is).
    • On OSX, take a look at my recent post about how to build ffmpeg.
  • rtmpdump:
    • On linux, again, you can probably just do sudo apt-get install rtmpdump (or the rpm equivalent).
    • On OSX, building this is just too simple:
      git clone git://git.ffmpeg.org/rtmpdump
      cd rtmpdump
      make SYS=darwin
      sudo make install SYS=darwin
  • If you’re on a *nix machine, there’s a strong likelihood that you have all these installed already, so best to check first.

    Windows users: you’re on your own here, sorry. I believe that get_iplayer will run on Windows, but I simply don’t have a copy of the OS installed on which to check it. You’ll probably need to get both ffmpeg and rtmpdump also too I’m afraid. If you do have success with windows (or indeed any other OS), let me know in the comments and I’ll add the instructions here.

    All of this is made possible of course by the work from infradead on the get_iplayer script (latest version included in the sickbeard code, but you can install your own if you prefer).

    Please note: for this to work you must either be *in* the UK, or have some kind of VPN connection to the UK. iPlayer downloads are restricted to UK ip addresses. (of course there are other ways around this, but I’m not going to discuss those here).

,

No Comments

Building ffmpeg on OSX 10.7

Note-to-self post again.

I can take no credit for this – it’s a copy of Hunter Ford’s script from here, with some minor changes I had to make to get it to run cleanly on 10.7.5.

Prerequisite: XCode, with command line tools installed.

Read the rest of this entry »

, ,

1 Comment

OSX: Using the second monitor while in full screen mode

I have an old macbook pro (circa 2008 I think) running 10.8 with an external monitor. Today I started running Avatron’s Air Display on it (a wonderful piece of software by the way), which runs in full screen mode. This left the laptop display itself useless, displaying that grey cloth background which apparently means “This is how OSX fullscreen works – get used to it”.

Anyway, I wanted to run Terminal.app on the main laptop screen, while running Air Display fullscreen on the external monitor. Apparently there are two ways:

1. It seems that you can “trick” OSX to allow this, by using the trackpad to slide between spaces, and opening Terminal.app (via spotlight) mid-slide. I couldn’t get this to work however, as my trackpad doesn’t do multi-touch (it’s too old), and it seems you need it. Works for a lot of other people though.

See this hint on macworld for details.

2. You can modify Terminal.app’s Info.plist file to make it a background app. Then, if you open Terminal.app (again, via spotlight) while viewing the fullscreen app, it won’t switch out of fullscreen mode.

To do this:
* Quit Terminal.app if running.
* Right-click on it, and Show Package Contents.
* Open the file Contents/Info.plist, and add the bold text below at the end (before the last “</dict>”):

			</dict>
		</dict>
	</array>
	<key>LSUIElement</key>
	<string>1</string>
</dict>
</plist>

Note that this has some serious side-effects! Most notably, the terminal will no longer appear as running in the dock, and you won’t be able to ALT-TAB to it.

(some general info regarding LSUIElement is available here)

That’s it. I’d be interested in hearing if there are other (easier!) ways.

, ,

No Comments

SEP.cnf.xml for a Cisco 7975G with chan-sccp-b

This is an annotated/censored copy of the SEPxxx.cnf.xml I use with my 7975G and chan-sccp-b/asterisk.

Read the rest of this entry »

, , , ,

No Comments

MySQL: moving innodb tables out of ibdata1

Note-to-self style post again.

MySQL’s innodb will store all table data in one file called ibdata1, unless you tell it to do otherwise. This can become an issue sometimes, particularly when the file gets really big.

Thankfully there’s a way to fix it.

Add innodb_file_per_table to my.cnf

[mysqld]
innodb_file_per_table

Update the running server with the same value
SET GLOBAL innodb_file_per_table=1;

Then
ALTER TABLE tablename ENGINE=Innodb;
for each table to move it out of the ibdata1 file.

Alternatively, you can use this little bit of trickery to generate the sql needed to do it for all tables:

SELECT concat('ALTER TABLE ', TABLE_SCHEMA, '.', TABLE_NAME, ' ENGINE=Innodb;') FROM INFORMATION_SCHEMA.TABLES WHERE ENGINE = 'InnoDB';

Then paste the result as sql and run it (it may take some time though).

,

No Comments