mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 05:27:15 +03:00
- Improved download from Url (Fixed BTJunkie search engine)
This commit is contained in:
parent
50d8f8eb04
commit
b54e40c87d
2 changed files with 11 additions and 1 deletions
2
TODO
2
TODO
|
@ -34,5 +34,5 @@
|
|||
// Before 0.7.0
|
||||
- Test tracker authentication
|
||||
- Wait for libtorrent v0.11rc release
|
||||
- Test & fix search engines (especially DownloadFromUrl)
|
||||
- Fix curl downloader to work with TorrentReactor engine
|
||||
|
||||
|
|
|
@ -92,6 +92,16 @@ class downloadThread : public QThread {
|
|||
// Some SSL mambo jambo
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
|
||||
// Disable progress meter
|
||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
|
||||
// Any kind of authentication
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||
// Auto referrer
|
||||
curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 1);
|
||||
// Follow redirections
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
|
||||
// Enable cookies
|
||||
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "");
|
||||
// We want error message:
|
||||
char errorBuffer[CURL_ERROR_SIZE];
|
||||
return_code = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorBuffer);
|
||||
|
|
Loading…
Reference in a new issue