QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, update server is temporarily unavailable."));
return;
}
if(url.endsWith(".zip")||url.endsWith(".py")){
if(url.endsWith(".pyqBT")||url.endsWith(".py")){
// a plugin update download has been failed
QStringplugin_name=url.split('/').last();
plugin_name.replace(".zip","");
plugin_name.replace(".pyqBT","");
plugin_name.replace(".py","");
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, %1 search plugin update failed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));