mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
Fix legittorrents search plugin (closes #515)
This commit is contained in:
parent
07ec2cce31
commit
9651d8736b
@ -1,4 +1,4 @@
|
||||
#VERSION: 1.01
|
||||
#VERSION: 1.02
|
||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -55,11 +55,11 @@ class legittorrents(object):
|
||||
def start_a(self, attr):
|
||||
params = dict(attr)
|
||||
if params.has_key('href') and params['href'].startswith('download.php?'):
|
||||
self.current_item['link'] = self.url + params['href'].strip()
|
||||
self.current_item['link'] = self.url + '/' + params['href'].strip()
|
||||
elif params.has_key('href') and params['href'].startswith('index.php?page=torrent-details'):
|
||||
self.current_item = {}
|
||||
self.td_counter = 0
|
||||
self.current_item['desc_link'] = self.url + params['href'].strip()
|
||||
self.current_item['desc_link'] = self.url + '/' + params['href'].strip()
|
||||
|
||||
def handle_data(self, data):
|
||||
if self.td_counter == 0:
|
||||
|
@ -6,4 +6,4 @@ vertor: 1.3
|
||||
extratorrent: 1.1
|
||||
kickasstorrents: 1.23
|
||||
btdigg: 1.21
|
||||
legittorrents: 1.01
|
||||
legittorrents: 1.02
|
||||
|
@ -1,4 +1,4 @@
|
||||
#VERSION: 1.01
|
||||
#VERSION: 1.02
|
||||
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -55,11 +55,11 @@ class legittorrents(object):
|
||||
def start_a(self, attr):
|
||||
params = dict(attr)
|
||||
if 'href' in params and params['href'].startswith('download.php?'):
|
||||
self.current_item['link'] = self.url + params['href'].strip()
|
||||
self.current_item['link'] = self.url + '/' + params['href'].strip()
|
||||
elif 'href' in params and params['href'].startswith('index.php?page=torrent-details'):
|
||||
self.current_item = {}
|
||||
self.td_counter = 0
|
||||
self.current_item['desc_link'] = self.url + params['href'].strip()
|
||||
self.current_item['desc_link'] = self.url + '/' + params['href'].strip()
|
||||
|
||||
def handle_data(self, data):
|
||||
if self.td_counter == 0:
|
||||
|
@ -6,4 +6,4 @@ vertor: 1.3
|
||||
extratorrent: 1.1
|
||||
kickasstorrents: 1.23
|
||||
btdigg: 1.21
|
||||
legittorrents: 1.01
|
||||
legittorrents: 1.02
|
||||
|
Loading…
Reference in New Issue
Block a user