Browse Source

Fix legittorrents search plugin (closes #515)

adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
9651d8736b
  1. 6
      src/searchengine/nova/engines/legittorrents.py
  2. 2
      src/searchengine/nova/engines/versions.txt
  3. 6
      src/searchengine/nova3/engines/legittorrents.py
  4. 2
      src/searchengine/nova3/engines/versions.txt

6
src/searchengine/nova/engines/legittorrents.py

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

2
src/searchengine/nova/engines/versions.txt

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

6
src/searchengine/nova3/engines/legittorrents.py

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

2
src/searchengine/nova3/engines/versions.txt

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

Loading…
Cancel
Save