mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
- Fixed download from url function (should be a lot less buggy). It improves downloads from search engine since it uses this function
- Removed torrentReactor search engine (hopefully temporarilly) because I can't manage to download from their links using libcurl - When HTTP response code is 500 (5xx in fact: too busy), downloader will retry 10 times every second.
This commit is contained in:
parent
b54e40c87d
commit
a072247e70
5 changed files with 41 additions and 25 deletions
26
src/GUI.cpp
26
src/GUI.cpp
|
@ -216,7 +216,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
|
|||
// Set search engines names
|
||||
mininova->setText("Mininova");
|
||||
piratebay->setText("ThePirateBay");
|
||||
reactor->setText("TorrentReactor");
|
||||
// reactor->setText("TorrentReactor");
|
||||
isohunt->setText("Isohunt");
|
||||
btjunkie->setText("BTJunkie");
|
||||
meganova->setText("Meganova");
|
||||
|
@ -224,7 +224,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
|
|||
loadCheckedSearchEngines();
|
||||
connect(mininova, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int)));
|
||||
connect(piratebay, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int)));
|
||||
connect(reactor, 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(meganova, SIGNAL(stateChanged(int)), this, SLOT(saveCheckedSearchEngines(int)));
|
||||
|
@ -761,8 +761,8 @@ void GUI::saveCheckedSearchEngines(int) const{
|
|||
lastSearchEngines.write(QByteArray("mininova\n"));
|
||||
if(piratebay->isChecked())
|
||||
lastSearchEngines.write(QByteArray("piratebay\n"));
|
||||
if(reactor->isChecked())
|
||||
lastSearchEngines.write(QByteArray("reactor\n"));
|
||||
// if(reactor->isChecked())
|
||||
// lastSearchEngines.write(QByteArray("reactor\n"));
|
||||
if(isohunt->isChecked())
|
||||
lastSearchEngines.write(QByteArray("isohunt\n"));
|
||||
if(btjunkie->isChecked())
|
||||
|
@ -893,11 +893,11 @@ void GUI::loadCheckedSearchEngines(){
|
|||
}else{
|
||||
piratebay->setChecked(false);
|
||||
}
|
||||
if(searchEnginesList.indexOf("reactor\n") != -1){
|
||||
reactor->setChecked(true);
|
||||
}else{
|
||||
reactor->setChecked(false);
|
||||
}
|
||||
// if(searchEnginesList.indexOf("reactor\n") != -1){
|
||||
// reactor->setChecked(true);
|
||||
// }else{
|
||||
// reactor->setChecked(false);
|
||||
// }
|
||||
if(searchEnginesList.indexOf("isohunt\n") != -1){
|
||||
isohunt->setChecked(true);
|
||||
}else{
|
||||
|
@ -1770,7 +1770,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;
|
||||
}
|
||||
|
@ -1784,9 +1784,9 @@ void GUI::on_search_button_clicked(){
|
|||
if(piratebay->isChecked()){
|
||||
engineNames << "piratebay";
|
||||
}
|
||||
if(reactor->isChecked()){
|
||||
engineNames << "reactor";
|
||||
}
|
||||
// if(reactor->isChecked()){
|
||||
// engineNames << "reactor";
|
||||
// }
|
||||
if(isohunt->isChecked()){
|
||||
engineNames << "isohunt";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue