Browse Source

Fix URL decoding in search engine

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
851a677a48
  1. 4
      src/searchengine/nova/engines/btdigg.py
  2. 2
      src/searchengine/nova/engines/versions.txt
  3. 2
      src/searchengine/searchengine.cpp

4
src/searchengine/nova/engines/btdigg.py

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
#
#VERSION: 1.00
#VERSION: 1.1
#AUTHORS: BTDigg team (research@btdigg.org)
#
# GNU GENERAL PUBLIC LICENSE
@ -52,7 +52,7 @@ class btdigg(object): @@ -52,7 +52,7 @@ class btdigg(object):
seeds = int(dl),
leech = int(dl),
engine_url = self.url,
desc_link = 'http://btdigg.org/search?%s' % (urllib.urlencode(dict(info_hash = info_hash)),))
desc_link = 'http://btdigg.org/search?%s' % (urllib.urlencode(dict(info_hash = info_hash, q = req)),))
prettyPrinter(res)
finally:

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

@ -7,4 +7,4 @@ vertor: 1.3 @@ -7,4 +7,4 @@ vertor: 1.3
torrentdownloads: 1.1
extratorrent: 1.1
kickasstorrents: 1.2
btdigg: 1.00
btdigg: 1.1

2
src/searchengine/searchengine.cpp

@ -729,7 +729,7 @@ void SearchEngine::on_goToDescBtn_clicked() @@ -729,7 +729,7 @@ void SearchEngine::on_goToDescBtn_clicked()
QSortFilterProxyModel* model = all_tab.at(tabWidget->currentIndex())->getCurrentSearchListProxy();
const QString desc_url = model->data(model->index(index.row(), DESC_LINK)).toString();
if(!desc_url.isEmpty())
QDesktopServices::openUrl(QUrl(desc_url));
QDesktopServices::openUrl(QUrl::fromEncoded(desc_url.toUtf8()));
}
}
}

Loading…
Cancel
Save