Skip to content

Commit

Permalink
readd ymp progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Sep 22, 2023
1 parent e9b0306 commit 81f84c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ccode/fetcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ void curl_options_common(char* url){
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
if (get_bool("no-processbar") || getenv("NO_PROGRESSBAR")){
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, fetcher_process_to_dummy);
} else {
if (get_bool("processbar") || getenv("PROGRESSBAR")){
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, fetcher_process_to_vala);
} else {
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, fetcher_process_to_dummy);
}
if (strcmp(get_value("ignore-ssl"),"true")==0){
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
Expand Down

0 comments on commit 81f84c4

Please sign in to comment.