Ported mininova plugin to the new API

This commit is contained in:
Christophe Dumez 2010-12-26 10:21:29 +00:00
parent ddf5779756
commit d2b6ed950d
2 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,4 @@
#VERSION: 1.40
#VERSION: 1.50
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
# Redistribution and use in source and binary forms, with or without
@ -54,10 +54,13 @@ class mininova(object):
def start_a(self, attr):
params = dict(attr)
#print params
if params.has_key('href') and params['href'].startswith("/get/"):
self.current_item = {}
self.td_counter = 0
self.current_item['link']=self.url+params['href'].strip()
if params.has_key('href'):
if params['href'].startswith("/get/"):
self.current_item = {}
self.td_counter = 0
self.current_item['link']=self.url+params['href'].strip()
elif params['href'].startswith("/tor/"):
self.current_item['desc_link']=self.url+params['href'].strip()
def handle_data(self, data):
if self.td_counter == 0:

View file

@ -1,7 +1,7 @@
isohunt: 1.4
torrentreactor: 1.3
btjunkie: 2.31
mininova: 1.40
mininova: 1.50
piratebay: 1.40
vertor: 1.2
torrentdownloads: 1.1