Ignore:
Timestamp:
11/03/15 16:01:47 (8 years ago)
Author:
obi
Message:

[tithek] add vivo.sx hoster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek_global.h

    r36015 r36051  
    5050        else if(ostrstr(tmplink, "thefile") != NULL)
    5151                streamurl = thefile(url);
    52         else if(ostrstr(tmplink, "youtu") != NULL)
     52        else if(ostrstr(tmplink, "youtube") != NULL)
    5353                streamurl = youtube(url);
    5454        else if(ostrstr(tmplink, "myvideo") != NULL)
     
    7272        else if(ostrstr(tmplink, "cloudzilla") != NULL)
    7373                streamurl = cloudzilla(url);
     74        else if(ostrstr(tmplink, "vivo") != NULL)
     75                streamurl = vivo(url);
    7476        else
    7577                textbox(_("Message"), _("The hoster is not yet supported !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0);
     
    160162                        curl_easy_setopt(curl_handle, CURLOPT_HEADER, 1L);
    161163                curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5);
    162                 curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 20);
     164                curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 100);
    163165                /* send all data to this function  */
    164166            if(localfile == NULL)
     
    180182                // CURLOPT_SSL_VERIFYPEER is disabled (it defaults to 2 - check the existence of a
    181183                // common name and also verify that it matches the hostname provided)
    182 #ifdef MIPSEL
    183184                curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 1L);
    184 #else
    185                 curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0L);
    186 #endif
     185
    187186                curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0L);
    188187                if(debuglevel == 99)
Note: See TracChangeset for help on using the changeset viewer.