From 0df84cd94b646638eaf8aa36eee80ea4bf44a629 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 5 Oct 2006 20:12:10 +0000 Subject: [PATCH] - Had to remove BTJunkie search engine because of their new anti-bot security --- Changelog | 2 +- src/GUI.cpp | 31 +++++++++++++++++-------------- src/MainWindow.ui | 7 ------- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/Changelog b/Changelog index bd80c1a53..25055cd49 100644 --- a/Changelog +++ b/Changelog @@ -8,7 +8,7 @@ - FEATURE: Display an explicit error message when a download from url fails - FEATURE: Allow the download multiple torrents from their url at once - FEATURE: New context menu on main window (Add, Start all, Pause all, Exit...) - - FEATURE: Now supports two new search engines (BtJunkie, MegaNova) + - FEATURE: Now supports one new search engines (MegaNova) - FEATURE: Rewritten search engine plugin (by fab31) - FEATURE: Rewritten parts of the download/search lists to improve performance - FEATURE: Individual share ratio is now displayed in each torrent properties. diff --git a/src/GUI.cpp b/src/GUI.cpp index 9657a4ec8..6328fcb2a 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -218,7 +218,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){ piratebay->setText("ThePirateBay"); // reactor->setText("TorrentReactor"); isohunt->setText("Isohunt"); - btjunkie->setText("BTJunkie"); +// btjunkie->setText("BTJunkie"); meganova->setText("Meganova"); // Check last checked search engines loadCheckedSearchEngines(); @@ -226,7 +226,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){ connect(piratebay, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int))); // connect(reactor, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int))); connect(isohunt, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int))); - connect(btjunkie, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int))); +// connect(btjunkie, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int))); connect(meganova, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int))); // Update nova.py search plugin if necessary updateNova(); @@ -765,8 +765,8 @@ void GUI::saveCheckedSearchEngines(int) const{ // lastSearchEngines.write(QByteArray("reactor\n")); if(isohunt->isChecked()) lastSearchEngines.write(QByteArray("isohunt\n")); - if(btjunkie->isChecked()) - lastSearchEngines.write(QByteArray("btjunkie\n")); +// if(btjunkie->isChecked()) +// lastSearchEngines.write(QByteArray("btjunkie\n")); if(meganova->isChecked()) lastSearchEngines.write(QByteArray("meganova\n")); lastSearchEngines.close(); @@ -903,11 +903,11 @@ void GUI::loadCheckedSearchEngines(){ }else{ isohunt->setChecked(false); } - if(searchEnginesList.indexOf("btjunkie\n") != -1){ - btjunkie->setChecked(true); - }else{ - btjunkie->setChecked(false); - } +// if(searchEnginesList.indexOf("btjunkie\n") != -1){ +// btjunkie->setChecked(true); +// }else{ +// btjunkie->setChecked(false); +// } if(searchEnginesList.indexOf("meganova\n") != -1){ meganova->setChecked(true); }else{ @@ -1654,9 +1654,10 @@ void GUI::propertiesSelection(){ // Check connection status and display right icon void GUI::checkConnectionStatus(){ - qDebug("Checking connection status"); + qDebug("Checking connection status 1"); char tmp[MAX_CHAR_TMP]; session_status sessionStatus = s->status(); + qDebug("Checking connection status 2"); // Update ratio info float ratio = 1.; if(sessionStatus.total_payload_download != 0){ @@ -1667,6 +1668,7 @@ void GUI::checkConnectionStatus(){ } snprintf(tmp, MAX_CHAR_TMP, "%.1f", ratio); LCD_Ratio->display(tmp); + qDebug("Checking connection status 3"); if(ratio < 0.5){ lbl_ratio_icon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/unhappy.png"))); }else{ @@ -1695,6 +1697,7 @@ void GUI::checkConnectionStatus(){ if(trackerErrors.size() > 50){ trackerErrors.clear(); } + qDebug("Checking connection status 4"); // look at session alerts and display some infos std::auto_ptr a = s->pop_alert(); while (a.get()){ @@ -1775,7 +1778,7 @@ void GUI::on_search_button_clicked(){ return; } // Getting checked search engines - if(!mininova->isChecked() && ! piratebay->isChecked()/* && !reactor->isChecked()*/ && !isohunt->isChecked() && !btjunkie->isChecked() && !meganova->isChecked()){ + if(!mininova->isChecked() && ! piratebay->isChecked()/* && !reactor->isChecked()*/ && !isohunt->isChecked()/* && !btjunkie->isChecked()*/ && !meganova->isChecked()){ QMessageBox::critical(0, tr("No seach engine selected"), tr("You must select at least one search engine.")); return; } @@ -1795,9 +1798,9 @@ void GUI::on_search_button_clicked(){ if(isohunt->isChecked()){ engineNames << "isohunt"; } - if(btjunkie->isChecked()){ - engineNames << "btjunkie"; - } +// if(btjunkie->isChecked()){ +// engineNames << "btjunkie"; +// } if(meganova->isChecked()){ engineNames << "meganova"; } diff --git a/src/MainWindow.ui b/src/MainWindow.ui index a5dd67fe5..4d3fcbd35 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -411,13 +411,6 @@ - - - - - - -