Changeset 36939 for titan/plugins/tithek/solarmovie.h
- Timestamp:
- 01/25/16 00:17:05 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/solarmovie.h
r36059 r36939 8 8 char* error = NULL; 9 9 10 if(link == NULL || ostrncmp("http://", link, 7)) return NULL;10 if(link == NULL || (ostrncmp("http://", link, 7) && ostrncmp("https://", link, 8))) return NULL; 11 11 12 12 tmphost = string_replace("http://", "", (char*)link, 0); … … 27 27 debug(99, "send: %s", send); 28 28 29 /* 29 30 // ssl workaround 30 31 unlink("/tmp/.solar.cache"); … … 41 42 // ssl workaround end 42 43 // tmpstr = gethttpreal(tmphost, tmppath, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0); 44 */ 45 tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1); 43 46 debug(99, "tmpstr: %s", tmpstr); 44 47 free(send); send = NULL; … … 160 163 else 161 164 path = ostrcat("tv/search/", search, 0, 0); 162 165 /* 163 166 // ssl workaround 164 167 unlink("/tmp/.solar.cache"); … … 176 179 177 180 // tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 181 */ 182 url = ostrcat("https://", ip, 0, 0); 183 url = ostrcat(url, "/", 1, 0); 184 url = ostrcat(url, path, 1, 0); 185 tmpstr = gethttps(url, NULL, NULL, NULL, NULL, NULL, 1); 186 free(url), url = NULL; 187 178 188 titheklog(debuglevel, "/tmp/solarmovie_tmpstr", NULL, NULL, NULL, tmpstr); 179 189 … … 202 212 title = string_resub("<a title=\"", "\"", tmpstr1, 0); 203 213 204 url = ostrcat("http ://www.solarmovie.ph", path, 0, 0);214 url = ostrcat("https://www.solarmovie.ph", path, 0, 0); 205 215 206 216 debug(99, "---------------------------");
Note: See TracChangeset
for help on using the changeset viewer.