mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Fix legittorrents search plugin (closes #515)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#VERSION: 1.01
|
#VERSION: 1.02
|
||||||
#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
|
||||||
@@ -55,11 +55,11 @@ class legittorrents(object):
|
|||||||
def start_a(self, attr):
|
def start_a(self, attr):
|
||||||
params = dict(attr)
|
params = dict(attr)
|
||||||
if params.has_key('href') and params['href'].startswith('download.php?'):
|
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'):
|
elif params.has_key('href') and params['href'].startswith('index.php?page=torrent-details'):
|
||||||
self.current_item = {}
|
self.current_item = {}
|
||||||
self.td_counter = 0
|
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):
|
def handle_data(self, data):
|
||||||
if self.td_counter == 0:
|
if self.td_counter == 0:
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ vertor: 1.3
|
|||||||
extratorrent: 1.1
|
extratorrent: 1.1
|
||||||
kickasstorrents: 1.23
|
kickasstorrents: 1.23
|
||||||
btdigg: 1.21
|
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)
|
#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
|
||||||
@@ -55,11 +55,11 @@ class legittorrents(object):
|
|||||||
def start_a(self, attr):
|
def start_a(self, attr):
|
||||||
params = dict(attr)
|
params = dict(attr)
|
||||||
if 'href' in params and params['href'].startswith('download.php?'):
|
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'):
|
elif 'href' in params and params['href'].startswith('index.php?page=torrent-details'):
|
||||||
self.current_item = {}
|
self.current_item = {}
|
||||||
self.td_counter = 0
|
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):
|
def handle_data(self, data):
|
||||||
if self.td_counter == 0:
|
if self.td_counter == 0:
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ vertor: 1.3
|
|||||||
extratorrent: 1.1
|
extratorrent: 1.1
|
||||||
kickasstorrents: 1.23
|
kickasstorrents: 1.23
|
||||||
btdigg: 1.21
|
btdigg: 1.21
|
||||||
legittorrents: 1.01
|
legittorrents: 1.02
|
||||||
|
|||||||
Reference in New Issue
Block a user