From 512d1f3d9d427a54a16ad418be707a4e690bba69 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 8 Mar 2007 18:15:08 +0000 Subject: [PATCH] - Fixed meganova search engine --- src/search_engine/nova.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/search_engine/nova.py b/src/search_engine/nova.py index 106126894..387078edb 100755 --- a/src/search_engine/nova.py +++ b/src/search_engine/nova.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- # Version: 2.0 # - Fixed ThePirateBay search engine +# - Fixed Meganova search engine # Version: 1.9 # Changelog: @@ -260,10 +261,11 @@ class MegaNova(object): url = 'http://www.meganova.org' def search(self, what): - dat = urllib.urlopen(self.url+'/search.php?order=5&search=%s'%what).read().decode('utf8', 'replace') + dat = urllib.urlopen(self.url+'/find-seeds/%s.html'%what).read().decode('utf8', 'replace') + print 'url is ' + self.url+'/find-seeds/%s.html'%what # I know it's not very readable, but the SGML parser feels in pain - section_re = re.compile('(?s).*?/torrent/.*?)".*?' '(?P.*?).*?' '>(?P[0-9.]+\s+.B).*?'