Torrent Broadcatching
Background
Broadcatching is the downloading of content that has been made available over the Internet using RSS syndication for listening on mobile devices and personal computers.
The general idea is to use an automated mechanism to aggregate various web feeds and download content for viewing or presentation purposes. (quote from Wikipedia)
Introduction
This script works with particular torrent clients like azureus and mldonkey. These clients must be able to periodically fetch torrents from a directory and put them in the queue. If you need it and you can’t do it yourself I can fix the script for torrentflux .
As for feeds not every feed works,you can use direct torrent link feeds or feeds from mininova.
Requirements
- Some basic ones like bash , wget and sed
- xsltproc (sudo apt-get install xsltproc)
- A torrent client (see “Introduction”)
Set It Up
make a directoy and cd into it
mkdir scripts
cd scripts
get the tarball
wget http://www.lucagasperini.com/blog/wp-content/uploads/2007/02/torbcatchtar2.gz
tar -zxvf torbcatch.tar.gz
cd torbcatch
gedit tvrss.sh
and modify the easy CONFIGURATION PARAMETERS (actually is just one)
enable cron (change “%USER” with the user you want to run the script , for both instances)
gedit /etc/crontab
and add this line at the end
02 * * * * %USER /home/%USER/scripts/torbcatch/tvrss.sh
How it works
The file bp.conf is a simple configuration file that contains the urls of the feeds you want to broacatch in this form
caseinsensitiveRegExp@http://urltofeed.com/feed.rss
You can use RegExp but you don’t have to (I don’t), if you leave it empty a wildcard (*) match will be performed.(if so remove the “@” too)
NonRegExp Example
You are interested in a Video Podcast called “UbuntuCast” but the official feed is unreliable, you can make a search on mininova.org for it.You find out that there are two Podcasters whose show have the same title,one is called “TENFE” and the other “VTZE” so you can change your search parameters and look for “UbuntuCast VTZE”.Now it should be better and the results should be a better match.Another problem arises,there are two versions of “UbuntuCast VTZE”, one is in HDTV and is 350 Megs the other is with 5.1 sound and is 700 Megs,you don’t have 5.1 and you want the 350 megs one. Looking for something like “UbuntuCast VTZE -HR” should do the trick.Ok now the results should be the one you are looking for.Look at the RSS icon with orange background ,thats the rss feed of your results,copy its link and put it in bp.conf.Done
EZTV example
Go here here and Register (login) ,after you login you should see “My shows” on the blue bar,click on it,click on “Add show” ,chose your shows,use the copy the “Rss Feed” link on the left frame in your bp.conf
Conclusions
The first time you run the script all the torrents it finds will be downloaded , after that it remembers the one you already downloaded.Be aware that the first time all the torrents will be added to you client’s queue,maybe it could be a good idea to change the directory where the script will move the torrent and change it back again after the first run.
Isohunt has tons of trackers but files shows up later than mininova. Best way is to use an official feed from the releaser.
Credits
Me
Linc
Mldonkey Community
Hi
I`m using broadcatch too with rtorrent , bittornado and mldonkey.
Have you found a way to exclude fake .rar files from the feed like this one :-
http://www.mininova.org/tor/570282
Thanks
cybergypsy
cybergypsy
4 feb 07 at 12:07 pm
Hi,
actually I gave up using mininova for a bunch of reasons, mostly because I used to get too many duplicates even from the same releaser,eztv is much better even if not perfect (sometimes they change torrent location and you get a nice .torrent file with “Can’t find torrent file” in it)
gas
4 feb 07 at 3:54 pm
Hi
nice work
I just replaced line:
if echo “$url” | egrep –color -i $expression >> $DEBUG 2> /dev/null
with
if echo “$url” | tr _ ” ” | egrep –color -i “$expression” >> $DEBUG 2> /dev/null
so it work with spaces and translates _ to spaces
Peter
29 mag 07 at 7:39 pm