mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-24 21:44:25 +00:00
Ported mininova plugin to the new API
This commit is contained in:
parent
ddf5779756
commit
d2b6ed950d
@ -1,4 +1,4 @@
|
|||||||
#VERSION: 1.40
|
#VERSION: 1.50
|
||||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -54,10 +54,13 @@ class mininova(object):
|
|||||||
def start_a(self, attr):
|
def start_a(self, attr):
|
||||||
params = dict(attr)
|
params = dict(attr)
|
||||||
#print params
|
#print params
|
||||||
if params.has_key('href') and params['href'].startswith("/get/"):
|
if params.has_key('href'):
|
||||||
|
if params['href'].startswith("/get/"):
|
||||||
self.current_item = {}
|
self.current_item = {}
|
||||||
self.td_counter = 0
|
self.td_counter = 0
|
||||||
self.current_item['link']=self.url+params['href'].strip()
|
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):
|
def handle_data(self, data):
|
||||||
if self.td_counter == 0:
|
if self.td_counter == 0:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
isohunt: 1.4
|
isohunt: 1.4
|
||||||
torrentreactor: 1.3
|
torrentreactor: 1.3
|
||||||
btjunkie: 2.31
|
btjunkie: 2.31
|
||||||
mininova: 1.40
|
mininova: 1.50
|
||||||
piratebay: 1.40
|
piratebay: 1.40
|
||||||
vertor: 1.2
|
vertor: 1.2
|
||||||
torrentdownloads: 1.1
|
torrentdownloads: 1.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user