Changeset 37468 for titan/plugins
- Timestamp:
- 03/26/16 20:21:04 (8 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.c
r37024 r37468 62 62 #include "nbaondemand.h" 63 63 #include "p2pcast.h" 64 #include "ecostream.h" 65 #include "vidzi.h" 64 66 65 67 char pluginname[] = "TiTan Mediathek"; -
titan/plugins/tithek/tithek_global.h
r37443 r37468 82 82 else if(ostrstr(tmplink, "p2pcast") != NULL) 83 83 streamurl = p2pcast(url); 84 else if(ostrstr(tmplink, "ecostream") != NULL) 85 streamurl = ecostream(url); 86 else if(ostrstr(tmplink, "vidzi") != NULL) 87 streamurl = vidzi(url); 84 88 else 85 89 { … … 173 177 curl_easy_setopt(curl_handle, CURLOPT_HTTPGET, 1L); 174 178 else 179 { 180 curl_easy_setopt(curl_handle, CURLOPT_POST, 1); 175 181 curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, data); 182 } 176 183 if(flag == 1) 177 184 curl_easy_setopt(curl_handle, CURLOPT_HEADER, 1L); … … 191 198 192 199 /* some servers don't like requests that are made without a user-agent field, so we provide one */ 193 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");194 //curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36");200 // curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0"); 201 curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36"); 195 202 196 203 // This is occassionally required to stop CURL from verifying the peers certificate. -
titan/plugins/tithek/tithek_header.h
r37024 r37468 115 115 char* nbaondemand(char* link); 116 116 char* p2pcast(char* link); 117 char* ecostream(char* link); 118 char* vidzi(char* link); 117 119 char* streamlive(char* link, int incount); 118 120 char* cricfree(char* link, int incount);
Note: See TracChangeset
for help on using the changeset viewer.