- Torrent downloading is now handled by search engine plugins to allow for more flexibility

This commit is contained in:
Christophe Dumez
2009-03-27 22:11:41 +00:00
parent 8214d87ce5
commit c2244f746e
17 changed files with 182 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
#VERSION: 2.1
#VERSION: 2.11
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
# Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
from novaprinter import prettyPrinter
from helpers import retrieve_url
from helpers import retrieve_url, download_file
import sgmllib
import re
@@ -38,7 +38,10 @@ class btjunkie(object):
def __init__(self):
self.results = []
self.parser = self.SimpleSGMLParser(self.results, self.url)
def download_torrent(self, info):
print download_file(info)
class SimpleSGMLParser(sgmllib.SGMLParser):
def __init__(self, results, url, *args):
sgmllib.SGMLParser.__init__(self)

View File

@@ -1,4 +1,4 @@
#VERSION: 1.2
#VERSION: 1.21
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
# Redistribution and use in source and binary forms, with or without
@@ -27,12 +27,15 @@
from novaprinter import prettyPrinter
import re
from helpers import retrieve_url
from helpers import retrieve_url, download_file
class isohunt(object):
url = 'http://isohunt.com'
name = 'isoHunt'
def download_torrent(self, info):
print download_file(info)
def search(self, what):
i = 1
while True and i<11:

View File

@@ -1,4 +1,4 @@
#VERSION: 1.21
#VERSION: 1.22
#AUTHORS: Fabien Devaux (fab@gnux.info)
# Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
# POSSIBILITY OF SUCH DAMAGE.
from novaprinter import prettyPrinter
from helpers import retrieve_url
from helpers import retrieve_url, download_file
from xml.dom import minidom
import re
@@ -34,6 +34,9 @@ class mininova(object):
url = 'http://www.mininova.org'
name = 'Mininova'
table_items = 'added cat name size seeds leech'.split()
def download_torrent(self, info):
print download_file(info)
def search(self, what):

View File

@@ -1,4 +1,4 @@
#VERSION: 1.1
#VERSION: 1.11
#AUTHORS: Fabien Devaux (fab@gnux.info)
# Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
from novaprinter import prettyPrinter
import sgmllib
from helpers import retrieve_url
from helpers import retrieve_url, download_file
class piratebay(object):
url = 'http://thepiratebay.org'
@@ -36,6 +36,9 @@ class piratebay(object):
def __init__(self):
self.results = []
self.parser = self.SimpleSGMLParser(self.results, self.url)
def download_torrent(self, info):
print download_file(info)
class SimpleSGMLParser(sgmllib.SGMLParser):
def __init__(self, results, url, *args):

View File

@@ -1,4 +1,4 @@
#VERSION: 1.1
#VERSION: 1.11
#AUTHORS: Gekko Dam Beer (gekko04@users.sourceforge.net)
# Redistribution and use in source and binary forms, with or without
@@ -27,12 +27,15 @@
from novaprinter import prettyPrinter
import sgmllib
from helpers import retrieve_url
from helpers import retrieve_url, download_file
class torrentreactor(object):
url = 'http://www.torrentreactor.net'
name = 'TorrentReactor.Net'
def download_torrent(self, info):
print download_file(info)
class SimpleSGMLParser(sgmllib.SGMLParser):
def __init__(self, results, url, *args):
sgmllib.SGMLParser.__init__(self)

View File

@@ -1,5 +1,5 @@
isohunt: 1.2
torrentreactor: 1.1
btjunkie: 2.1
mininova: 1.21
piratebay: 1.1
isohunt: 1.21
torrentreactor: 1.11
btjunkie: 2.11
mininova: 1.22
piratebay: 1.11