From 851a677a488461c236d23738e59f6b9a1c598477 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 11 Apr 2011 16:21:07 +0000 Subject: [PATCH] Fix URL decoding in search engine --- src/searchengine/nova/engines/btdigg.py | 4 ++-- src/searchengine/nova/engines/versions.txt | 2 +- src/searchengine/searchengine.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/searchengine/nova/engines/btdigg.py b/src/searchengine/nova/engines/btdigg.py index f3809f059..584dd089f 100644 --- a/src/searchengine/nova/engines/btdigg.py +++ b/src/searchengine/nova/engines/btdigg.py @@ -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): 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: diff --git a/src/searchengine/nova/engines/versions.txt b/src/searchengine/nova/engines/versions.txt index 1bcb5869d..08d74f646 100644 --- a/src/searchengine/nova/engines/versions.txt +++ b/src/searchengine/nova/engines/versions.txt @@ -7,4 +7,4 @@ vertor: 1.3 torrentdownloads: 1.1 extratorrent: 1.1 kickasstorrents: 1.2 -btdigg: 1.00 +btdigg: 1.1 diff --git a/src/searchengine/searchengine.cpp b/src/searchengine/searchengine.cpp index 6a8d50b43..913131348 100644 --- a/src/searchengine/searchengine.cpp +++ b/src/searchengine/searchengine.cpp @@ -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())); } } }