- FEATURE: Search engine is now using one thread per website for faster results

This commit is contained in:
Christophe Dumez 2007-04-03 23:55:21 +00:00
commit c6c4bc1277
4 changed files with 11 additions and 4 deletions

View file

@ -372,7 +372,7 @@ float SearchEngine::getNovaVersion(const QString& novaPath) const{
line = line.split(' ').last();
line.chop(1); // removes '\n'
version = line.toFloat();
qDebug("Search plugin version: %.1f", version);
qDebug("Search plugin version: %.2f", version);
break;
}
}
@ -470,7 +470,7 @@ void SearchEngine::on_update_nova_button_clicked(){
qDebug("Version on qbittorrent.org: %f", getNovaVersion(filePath));
float version_on_server = getNovaVersion(filePath);
if(version_on_server == 0.0){
//First server is down, try mirror
//First server is down, try the mirror
QFile::remove(filePath);
FILE *file = fopen((const char*)filePath.toUtf8(), "w");
if(!file){

View file

@ -1,5 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Version: 2.01
# Changelog:
# - Use multiple threads to optimize speed
# Version: 2.0
# Changelog:
# - Fixed ThePirateBay search engine
@ -54,7 +58,6 @@ THREADED = True
if os.environ.has_key('QBITTORRENT'):
STANDALONE = False
THREADED = False
best_ratios = []