Fix legittorrents search plugin (closes #515)

This commit is contained in:
Christophe Dumez 2013-03-20 21:16:28 +02:00
parent 07ec2cce31
commit 9651d8736b
4 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -6,4 +6,4 @@ vertor: 1.3
extratorrent: 1.1
kickasstorrents: 1.23
btdigg: 1.21
legittorrents: 1.01
legittorrents: 1.02

View File

@ -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:

View File

@ -6,4 +6,4 @@ vertor: 1.3
extratorrent: 1.1
kickasstorrents: 1.23
btdigg: 1.21
legittorrents: 1.01
legittorrents: 1.02