Browse Source

Fix: error in mininova search engine

adaptive-webui-19844
ngosang 10 years ago
parent
commit
1bd9b6ae1a
  1. 5
      src/gui/searchengine/nova/engines/mininova.py
  2. 2
      src/gui/searchengine/nova/engines/versions.txt
  3. 5
      src/gui/searchengine/nova3/engines/mininova.py
  4. 2
      src/gui/searchengine/nova3/engines/versions.txt

5
src/gui/searchengine/nova/engines/mininova.py

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
#VERSION: 1.50
#VERSION: 1.51
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
#CONTRIBUTORS: Diego de las Heras (diegodelasheras@gmail.com)
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@ -59,7 +60,7 @@ class mininova(object): @@ -59,7 +60,7 @@ class mininova(object):
self.current_item = {}
self.td_counter = 0
self.current_item['link']=self.url+params['href'].strip()
elif params['href'].startswith("/tor/"):
elif params['href'].startswith("/tor/") and self.current_item is not None:
self.current_item['desc_link']=self.url+params['href'].strip()
def handle_data(self, data):

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
torrentreactor: 1.33
mininova: 1.50
mininova: 1.51
piratebay: 2.01
extratorrent: 1.2
kickasstorrents: 1.25

5
src/gui/searchengine/nova3/engines/mininova.py

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
#VERSION: 1.50
#VERSION: 1.51
#AUTHORS: Christophe Dumez (chris@qbittorrent.org)
#CONTRIBUTORS: Diego de las Heras (diegodelasheras@gmail.com)
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@ -59,7 +60,7 @@ class mininova(object): @@ -59,7 +60,7 @@ class mininova(object):
self.current_item = {}
self.td_counter = 0
self.current_item['link']=self.url+params['href'].strip()
elif params['href'].startswith("/tor/"):
elif params['href'].startswith("/tor/") and self.current_item is not None:
self.current_item['desc_link']=self.url+params['href'].strip()
def handle_data(self, data):

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
torrentreactor: 1.33
mininova: 1.50
mininova: 1.51
piratebay: 2.01
extratorrent: 1.2
kickasstorrents: 1.25

Loading…
Cancel
Save