Changeset 24238
- Timestamp:
- 10/12/13 16:00:09 (10 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/putlocker.h
r21018 r24238 5 5 { 6 6 debug(99, "in host: %s file: %s", host, file); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* tmphost = NULL; 8 9 char* tmpfile = NULL; … … 53 54 goto end; 54 55 } 55 if(getconfigint("debuglevel", NULL) == 99) 56 system("cp -a /tmp/tithek/get /tmp/putlocker1_tmpstr_get"); 56 if(debuglevel == 99) system("cp -a /tmp/tithek/get /tmp/putlocker1_tmpstr_get"); 57 57 58 58 char* header = NULL; … … 87 87 free(cmd); cmd = NULL; 88 88 free(lines); lines = NULL; 89 if(getconfigint("debuglevel", NULL) == 99) 90 writesys("/tmp/putlocker2_tmpstr_zcat", tmpstr, 0); 89 titheklog(debuglevel, "/tmp/putlocker2_tmpstr_zcat", NULL, tmpstr); 91 90 92 91 //get hash from tmpstr … … 126 125 gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/x9", NULL, NULL, 0, send, NULL, 5000, 0); 127 126 sleep(1); 128 if(getconfigint("debuglevel", NULL) == 99) 129 system("cp -a /tmp/tithek/x9 /tmp/putlocker3_tmpstr_post"); 127 if(debuglevel == 99) system("cp -a /tmp/tithek/x9 /tmp/putlocker3_tmpstr_post"); 130 128 131 129 free(send); send = NULL; 132 130 tmpstr = command("cat /tmp/tithek/x9 | sed '1,1d' | zcat"); 133 if(getconfigint("debuglevel", NULL) == 99) 134 writesys("/tmp/putlocker4_tmpstr_post_zcat", tmpstr, 0); 131 titheklog(debuglevel, "/tmp/putlocker4_tmpstr_post_zcat", NULL, tmpstr); 135 132 136 133 if(ostrstr(tmpstr, "warning_message") != NULL) … … 185 182 free(send); send = NULL; 186 183 187 if(getconfigint("debuglevel", NULL) == 99) 188 writesys("/tmp/putlocker5_tmpstr_get", tmpstr, 0); 184 titheklog(debuglevel, "/tmp/putlocker5_tmpstr_get", NULL, tmpstr); 189 185 190 186 //Streaming version of this file is currently not available. You can download it below. … … 192 188 //get streamlink1 193 189 streamlink1 = getxmlentry(tmpstr, "url="); 194 if(getconfigint("debuglevel", NULL) == 99) 195 writesys("/tmp/putlocker5_streamlink", streamlink1, 0); 190 titheklog(debuglevel, "/tmp/putlocker5_streamlink", NULL, streamlink1); 196 191 197 192 free(tmpstr); tmpstr = NULL; -
titan/plugins/tithek/solarmovie.h
r23760 r24238 128 128 int solarmovie_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag) 129 129 { 130 int debuglevel = getconfigint("debuglevel", NULL); 130 131 int ret = 1; 131 132 int incount = 0; … … 163 164 164 165 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 165 if(getconfigint("debuglevel", NULL) == 99) 166 writesys("/tmp/solarmovie_tmpstr", tmpstr, 0); 166 titheklog(debuglevel, "/tmp/solarmovie_tmpstr", NULL, tmpstr); 167 167 168 168 while(ostrstr(tmpstr, "<div class=\"typicalGrey coverGroup\">") != NULL) … … 172 172 173 173 incount += 1; 174 if( getconfigint("debuglevel", NULL)== 99)174 if(debuglevel == 99) 175 175 { 176 176 file = ostrcat("/tmp/solarmovie_tmpstr", oitoa(incount), 0, 1); … … 180 180 tmpstr1 = string_resub("<div class=\"typicalGrey coverGroup\">", "</div>", tmpstr, 0); 181 181 182 if( getconfigint("debuglevel", NULL)== 99)182 if(debuglevel == 99) 183 183 { 184 184 file1 = ostrcat("/tmp/solarmovie_tmpstr_resub", oitoa(incount), 0, 1); … … 239 239 { 240 240 debug(99, "link: %s", link); 241 int debuglevel = getconfigint("debuglevel", NULL); 241 242 int ret = 1, series = 0; 242 243 char* ip = NULL, *pos = NULL, *path = NULL, *etitle = NULL, *episode = NULL, *session = NULL, *update = NULL, *quality = NULL, *id = NULL, *line = NULL, *hname = NULL, *tmpstr = NULL, *cmd = NULL, *url = NULL, *tmpstr1 = NULL, *tmphost = NULL, *tmphname = NULL; … … 266 267 goto end; 267 268 } 268 if(getconfigint("debuglevel", NULL) == 99) 269 system("cp -a /tmp/tithek/get /tmp/solarmovie1_tmpstr_get"); 269 if(debuglevel == 99) system("cp -a /tmp/tithek/get /tmp/solarmovie1_tmpstr_get"); 270 270 271 271 tmpstr = command("cat /tmp/tithek/get"); … … 283 283 system("cp -a /tmp/tithek/get /tmp/tithek/get_zcat"); 284 284 285 if(getconfigint("debuglevel", NULL) == 99) 286 writesys("/tmp/solarmovie2_tmpstr_zcat", tmpstr, 0); 285 titheklog(debuglevel, "/tmp/solarmovie2_tmpstr_zcat", NULL, tmpstr); 287 286 288 287 drawscreen(load, 0, 0); … … 403 402 etitle = oregex(".*>(.*)<.*", ret1[i].part); 404 403 url = string_resub("\"", "\"", ret1[i].part, 0); 405 printf("(s%se%s) (%s) = %s\n",session , episode, etitle, url); 404 406 405 incount += 1; 407 406 line = ostrcat(line, _("Season"), 1, 0); … … 456 455 writesys(tmpstr, line, 0); 457 456 458 if(getconfigint("debuglevel", NULL) == 99) 459 writesys("/tmp/solarmovie8_line", line, 0); 457 titheklog(debuglevel, "/tmp/solarmovie8_line", NULL, line); 460 458 461 459 struct tithek* tnode = (struct tithek*)listbox->select->handle; -
titan/plugins/tithek/streamcloud.h
r19879 r24238 5 5 { 6 6 debug(99, "in host: %s file: %s", host, file); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* tmphost = NULL; 8 9 char* tmpfile = NULL; … … 105 106 debug(99, "hash: %s", hash); 106 107 hashlen = oitoa(strlen(hash)); 107 108 108 109 //create send string 109 110 free(send), send = NULL; … … 123 124 free(tmpstr), tmpstr = NULL; 124 125 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0); 125 if(getconfigint("debuglevel", NULL) == 99) 126 writesys("/tmp/streamcould2_tmpstr_post", tmpstr, 0); 126 titheklog(debuglevel, "/tmp/streamcould2_tmpstr_post", NULL, tmpstr); 127 127 128 128 // streamlink = oregex(".*file: \".*(http:.*video.mp4).*\".*", tmpstr); 129 129 streamlink = string_resub("file: \"", "\"", tmpstr, 0); 130 if(getconfigint("debuglevel", NULL) == 99) 131 writesys("/tmp/streamcould3_streamlink", streamlink, 0); 130 titheklog(debuglevel, "/tmp/streamcould3_streamlink", NULL, streamlink); 132 131 133 132 free(tmpstr); tmpstr = NULL; -
titan/plugins/tithek/vidstream.h
r21018 r24238 5 5 { 6 6 debug(99, "in host: %s file: %s", host, file); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* tmphost = NULL; 8 9 char* tmpfile = NULL; … … 42 43 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 43 44 44 if(getconfigint("debuglevel", NULL) == 99) 45 writesys("/tmp/vidstream1_tmpstr", tmpstr, 0); 45 titheklog(debuglevel, "/tmp/vidstream1_tmpstr", NULL, tmpstr); 46 46 47 47 sleep(1); … … 121 121 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 122 122 123 if(getconfigint("debuglevel", NULL) == 99) 124 writesys("/tmp/vidstream2_tmpstr_post", tmpstr, 0); 123 titheklog(debuglevel, "/tmp/vidstream2_tmpstr_post", NULL, tmpstr); 125 124 126 125 sleep(1); 127 126 streamlink = string_resub("file: \"", "\",", tmpstr, 0); 128 127 129 if(getconfigint("debuglevel", NULL) == 99) 130 writesys("/tmp/vidstream3_streamlink", streamlink, 0); 128 titheklog(debuglevel, "/tmp/vidstream3_streamlink", NULL, streamlink); 131 129 132 130 end: -
titan/plugins/tithek/xvideos.h
r22584 r24238 5 5 { 6 6 debug(99, "link %s", link); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* ip = NULL, *pos = NULL, *path = NULL, *streamurl = NULL, *tmpstr = NULL; 8 9 … … 24 25 writesys("/var/usr/local/share/titan/plugins/tithek/xvideos2_tmpstr", tmpstr, 0); 25 26 26 27 if(getconfigint("debuglevel", NULL) == 99) 28 writesys("/tmp/xvideos1_tmpstr", tmpstr, 0); 27 titheklog(debuglevel, "/tmp/xvideos1_tmpstr", NULL, tmpstr); 29 28 30 29 if(tmpstr != NULL) … … 36 35 free(ip), ip = NULL; 37 36 38 if(getconfigint("debuglevel", NULL) == 99) 39 writesys("/tmp/xvideos2_streamurl", streamurl, 0); 37 titheklog(debuglevel, "/tmp/xvideos2_streamurl", NULL, streamurl); 40 38 41 39 // segfault munmap_chunk(): invalid pointer -
titan/plugins/tithek/xvidstage.h
r19880 r24238 5 5 { 6 6 debug(99, "in host: %s file: %s", host, file); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* tmphost = NULL; 8 9 char* tmpfile = NULL; … … 66 67 } 67 68 68 if(getconfigint("debuglevel", NULL) == 99) 69 system("cp -a /tmp/tithek/get /tmp/xvidstage1_tmpstr_get"); 69 if(debuglevel == 99) system("cp -a /tmp/tithek/get /tmp/xvidstage1_tmpstr_get"); 70 70 71 71 tmpstr = command("cat /tmp/tithek/get"); 72 72 cookie = string_resub("Set-Cookie: afc=", ";", tmpstr, 0); 73 73 debug(99, "cookie: %s", cookie); 74 75 if(getconfigint("debuglevel", NULL) == 99) 76 writesys("/tmp/xvidstage2_tmpstr", tmpstr, 0); 74 75 titheklog(debuglevel, "/tmp/xvidstage2_tmpstr", NULL, tmpstr); 77 76 78 77 free(tmpstr), tmpstr = NULL; … … 99 98 free(lines); lines = NULL; 100 99 101 if(getconfigint("debuglevel", NULL) == 99) 102 writesys("/tmp/xvidstage3_tmpstr_zcat", tmpstr, 0); 100 titheklog(debuglevel, "/tmp/xvidstage3_tmpstr_zcat", NULL, tmpstr); 103 101 104 102 sleep(1); … … 179 177 } 180 178 181 if(getconfigint("debuglevel", NULL) == 99) 182 system("cp -a /tmp/tithek/post /tmp/xvidstage4_tmpstr_post"); 179 if(debuglevel == 99) system("cp -a /tmp/tithek/post /tmp/xvidstage4_tmpstr_post"); 183 180 184 181 cmd = ostrcat(cmd, "cat /tmp/tithek/post | zcat", 1, 0); 185 182 debug(99, "cmd: %s", cmd); 186 183 post = command(cmd); 187 if(getconfigint("debuglevel", NULL) == 99) 188 writesys("/tmp/xvidstage5_tmpstr_post1_zcat", post, 0); 184 titheklog(debuglevel, "/tmp/xvidstage5_tmpstr_post1_zcat", NULL, post); 189 185 free(cmd); cmd = NULL; 190 186 191 187 free(tmpstr),tmpstr = NULL; 192 188 tmpstr = string_resub(";return p}('", ");'", post, 0); 193 if(getconfigint("debuglevel", NULL) == 99) 194 writesys("/tmp/xvidstage6_tmpstr_post1_zcat_resub", tmpstr, 0); 189 titheklog(debuglevel, "/tmp/xvidstage6_tmpstr_post1_zcat_resub", NULL, tmpstr); 195 190 196 191 post = string_replace_all(tmpstr, "", post, 1); 197 192 post = string_replace_all(";return p}(');'", "", post, 1); 198 if(getconfigint("debuglevel", NULL) == 99) 199 writesys("/tmp/xvidstage7_tmpstr_post2", post, 0); 193 titheklog(debuglevel, "/tmp/xvidstage7_tmpstr_post2", NULL, post); 200 194 201 195 free(tmpstr),tmpstr = NULL; 202 196 free(b36code),b36code = NULL; 203 197 tmpstr = string_resub(";return p}('", ");'", post, 0); 204 if(getconfigint("debuglevel", NULL) == 99) 205 writesys("/tmp/xvidstage8_tmpstr_post2_resub", tmpstr, 0); 198 titheklog(debuglevel, "/tmp/xvidstage8_tmpstr_post2_resub", NULL, tmpstr); 206 199 207 200 b36code = oregex(".*;',[0-9]{2,2},[0-9]{2,2},'(.*)'.split.*", post); 208 201 209 b36code = string_replace_all("||", "| |", b36code, 1); 210 if(getconfigint("debuglevel", NULL) == 99) 211 writesys("/tmp/xvidstage9_tmpstr_post2_resub_b36code2", b36code, 0); 202 b36code = string_replace_all("||", "| |", b36code, 1); 203 titheklog(debuglevel, "/tmp/xvidstage9_tmpstr_post2_resub_b36code2", NULL, b36code); 212 204 213 205 struct splitstr* ret1 = NULL; … … 288 280 free(charlist), charlist = NULL; 289 281 290 if(getconfigint("debuglevel", NULL) == 99) 291 writesys("/tmp/xvidstage10_tmpstr_last", tmpstr, 0); 282 titheklog(debuglevel, "/tmp/xvidstage10_tmpstr_last", NULL, tmpstr); 292 283 293 284 streamlink = oregex(".*file.*(http:.*video.flv).*image.*", tmpstr); … … 319 310 streamlink = oregex(".*value=.*(http:.*video.avi).*\".*", tmpstr); 320 311 321 if(getconfigint("debuglevel", NULL) == 99) 322 writesys("/tmp/xvidstage11_streamlink", streamlink, 0); 312 titheklog(debuglevel, "/tmp/xvidstage11_streamlink", NULL, streamlink); 323 313 324 314 free(tmpstr); tmpstr = NULL; -
titan/plugins/tithek/zdf.h
r24002 r24238 5 5 { 6 6 debug(99, "link %s", link); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* ip = NULL, *pos = NULL, *path = NULL, *streamurl = NULL, *tmpstr = NULL, *tmpstr2 = NULL, *pic = NULL, *title = NULL, *tmpstr3 = NULL, *quali = NULL; 8 9 … … 18 19 19 20 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 20 if(getconfigint("debuglevel", NULL) == 99) 21 writesys("/tmp/zdf1_tmpstr", tmpstr, 0); 22 23 if(getconfigint("debuglevel", NULL) == 99) 24 writesys("/var/usr/local/share/titan/plugins/tithek/zdf1_tmpstr", tmpstr, 0); 25 21 titheklog(debuglevel, "/tmp/zdf1_tmpstr", NULL, tmpstr); 26 22 27 23 if(tmpstr != NULL) … … 41 37 tmpstr2 = string_replace_all("<formitaet basetype", "\n\t<formitaet basetype", tmpstr2, 1); 42 38 43 if(getconfigint("debuglevel", NULL) == 99) 44 writesys("/var/usr/local/share/titan/plugins/tithek/zdf1_tmpstr2", tmpstr2, 0); 39 titheklog(debuglevel, "/tmp/zdf1_tmpstr2", NULL, tmpstr"); 45 40 46 41 int count = 0, i = 0; … … 113 108 free(ret1), ret1 = NULL; 114 109 115 if(mlist != NULL){ 110 if(mlist != NULL) 111 { 116 112 mbox = menulistbox(mlist, NULL, NULL, NULL, NULL, 1, 0); 117 if(mbox != NULL){ 118 free(streamurl), streamurl = NULL; 119 120 debug(99, "mbox->name %s", mbox->name); 121 debug(99, "mbox->text %s", mbox->text); 122 streamurl = ostrcat(mbox->text, NULL, 0, 0); 123 113 if(mbox != NULL) 114 { 115 free(streamurl), streamurl = NULL; 116 117 debug(99, "mbox->name %s", mbox->name); 118 debug(99, "mbox->text %s", mbox->text); 119 streamurl = ostrcat(mbox->text, NULL, 0, 0); 120 124 121 } 125 } 122 } 126 123 } 127 124 … … 129 126 free(ip), ip = NULL; 130 127 131 if(getconfigint("debuglevel", NULL) == 99) 132 writesys("/tmp/zdf2_streamurl", streamurl, 0); 128 titheklog(debuglevel, "/tmp/zdf2_streamurl", NULL, streamurl"); 133 129 134 130 // segfault munmap_chunk(): invalid pointer
Note: See TracChangeset
for help on using the changeset viewer.