Changeset 24319
- Timestamp:
- 10/15/13 03:03:05 (10 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/filenuke.h
r24314 r24319 45 45 titheklog(debuglevel, "/tmp/filenuke1_get", NULL, tmpstr); 46 46 47 if(tmpstr == NULL) 48 { 49 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 50 goto end; 51 } 52 47 53 // sleep(2); 48 54 49 if( ostrstr(tmpstr, "<title>The page is temporarily unavailable</title>") != NULL)55 if(tmpstr == NULL || ostrstr(tmpstr, "<title>The page is temporarily unavailable</title>") != NULL) 50 56 { 51 57 error = string_resub("<td align=\"center\" valign=\"middle\">", "</td>", tmpstr, 0); … … 115 121 debug(99, "post: %s", post); 116 122 titheklog(debuglevel, "/tmp/filenuke2_post", NULL, tmpstr); 123 124 if(post == NULL) 125 { 126 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 127 goto end; 128 } 117 129 118 130 free(tmpstr),tmpstr = NULL; -
titan/plugins/tithek/kinox.h
r24311 r24319 43 43 else if(ostrcmp(hname, "NowVideo.sx") == 0) 44 44 streamurl = nowvideo("NowVideo.sx", id, url); 45 else if(ostrcmp(hname, "MovShare.net") == 0) 46 streamurl = movshare("MovShare.net", id, url); 45 47 46 48 debug(99, "streamurl1: %s", streamurl); … … 79 81 { 80 82 drawscreen(load, 0, 0); 81 search = stringreplacechar(search, ' ', '+');82 83 char* tmpstr = NULL; 83 84 char* tmpstr1 = NULL; … … 92 93 char* path = NULL; 93 94 char* menu = NULL; 95 96 search = strstrip(search); 97 search = stringreplacechar(search, ' ', '+'); 98 debug(99, "search: %s", search); 94 99 95 100 ip = ostrcat("kinox.to", NULL, 0, 0); … … 409 414 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 410 415 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 416 else if(ret2 != NULL && count2 > 4 && ostrcmp(hname, "MovShare.net") == 0) 417 tmpstr2 = ostrcat(ret2[4].part, NULL, 0, 0); 411 418 else 412 419 { … … 481 488 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 482 489 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 490 else if(ret2 != NULL && count2 > 4 && ostrcmp(hname, "MovShare.net") == 0) 491 tmpstr2 = ostrcat(ret2[4].part, NULL, 0, 0); 483 492 else 484 493 { … … 548 557 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 549 558 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 559 else if(ret2 != NULL && count2 > 4 && ostrcmp(hname, "MovShare.net") == 0) 560 tmpstr2 = ostrcat(ret2[4].part, NULL, 0, 0); 550 561 else 551 562 { … … 616 627 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 617 628 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 629 else if(ret2 != NULL && count2 > 4 && ostrcmp(hname, "MovShare.net") == 0) 630 tmpstr2 = ostrcat(ret2[4].part, NULL, 0, 0); 618 631 else 619 632 { … … 817 830 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 818 831 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 832 else if(ret2 != NULL && count2 > 4 && ostrcmp(hname, "MovShare.net") == 0) 833 tmpstr2 = ostrcat(ret2[4].part, NULL, 0, 0); 819 834 else 820 835 { … … 893 908 { 894 909 drawscreen(load, 0, 0); 910 search = strstrip(search); 895 911 search = stringreplacechar(search, ' ', '+'); 912 debug(99, "search: %s", search); 896 913 897 914 char* tmpstr = NULL; -
titan/plugins/tithek/movie4k.h
r24309 r24319 73 73 streamurl = nowvideo("NowVideo.eu", tmpstr2, url); 74 74 } 75 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "Movshare") == 0) 76 { 77 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 78 tmpstr2 = string_replace("embed.php?v=", "", tmpstr2, 1); 79 streamurl = movshare("MovShare.net", tmpstr2, url); 80 } 81 75 82 free(ret2), ret2 = NULL; 76 83 } … … 105 112 char* pic = NULL; 106 113 char* type = NULL; 107 114 int debuglevel = getconfigint("debuglevel", NULL); 108 115 109 116 if(listbox == NULL || listbox->select == NULL || listbox->select->handle == NULL) … … 124 131 { 125 132 drawscreen(load, 0, 0); 133 search = strstrip(search); 126 134 search = stringreplacechar(search, ' ', '+'); 135 debug(99, "search: %s", search); 127 136 128 137 char* send = NULL; … … 133 142 debug(99, "send: %s", send); 134 143 135 tmpstr = gethttpreal(" movie4k.to", "/", 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);144 tmpstr = gethttpreal("www.movie4k.to", "/searchAutoCompleteNew.php?search=the", 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 136 145 free(send); send = NULL; 146 debug(99, "tmpstr: %s", tmpstr); 147 titheklog(debuglevel, "/tmp/movie4k_search", NULL, tmpstr); 137 148 138 149 char* key = string_resub("securekey=", "&search", tmpstr, 0); … … 418 429 else if(ostrcmp(tmphname, "Nowvideo") == 0) 419 430 hname = ostrcat("NowVideo.eu", NULL, 0, 0); 420 else if(ostrcmp(tmphname, " Nowvideo") == 0)421 hname = ostrcat(" NowVideo.eu", NULL, 0, 0);431 else if(ostrcmp(tmphname, "Movshare") == 0) 432 hname = ostrcat("MovShare.net", NULL, 0, 0); 422 433 else 423 434 { … … 481 492 else if(ostrcmp(tmphname, "Nowvideo") == 0) 482 493 hname = ostrcat("NowVideo.eu", NULL, 0, 0); 483 else if(ostrcmp(tmphname, " Nowvideo") == 0)484 hname = ostrcat(" NowVideo.eu", NULL, 0, 0);494 else if(ostrcmp(tmphname, "Movshare") == 0) 495 hname = ostrcat("MovShare.net", NULL, 0, 0); 485 496 else 486 497 { … … 537 548 else if(ostrcmp(tmphname, "Nowvideo") == 0) 538 549 hname = ostrcat("NowVideo.eu", NULL, 0, 0); 539 else if(ostrcmp(tmphname, " Nowvideo") == 0)540 hname = ostrcat(" NowVideo.eu", NULL, 0, 0);550 else if(ostrcmp(tmphname, "Movshare") == 0) 551 hname = ostrcat("MovShare.net", NULL, 0, 0); 541 552 else 542 553 { … … 593 604 else if(ostrcmp(tmphname, "Nowvideo") == 0) 594 605 hname = ostrcat("NowVideo.eu", NULL, 0, 0); 595 else if(ostrcmp(tmphname, " Nowvideo") == 0)596 hname = ostrcat(" NowVideo.eu", NULL, 0, 0);606 else if(ostrcmp(tmphname, "Movshare") == 0) 607 hname = ostrcat("MovShare.net", NULL, 0, 0); 597 608 else 598 609 { -
titan/plugins/tithek/putlocker.h
r24310 r24319 34 34 debug(99, "tmpstr: %s", tmpstr); 35 35 titheklog(debuglevel, "/tmp/putlocker1_tmpstr_get", NULL, tmpstr); 36 37 if(tmpstr == NULL) 38 { 39 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 40 goto end; 41 } 42 43 if(ostrstr(tmpstr, "This file doesn't exist, or has been removed.") != NULL) 44 { 45 textbox(_("Message"), _("This file doesn't exist, or has been removed."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 400, 0, 0); 46 goto end; 47 } 36 48 37 49 phpsessid = getxmlentry(tmpstr, "PHPSESSID="); … … 80 92 debug(99, "tmpstr: %s", tmpstr); 81 93 titheklog(debuglevel, "/tmp/putlocker2_tmpstr_post", NULL, tmpstr); 94 95 if(tmpstr == NULL) 96 { 97 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 98 goto end; 99 } 82 100 83 101 if(ostrstr(tmpstr, "warning_message") != NULL) … … 134 152 titheklog(debuglevel, "/tmp/putlocker3_tmpstr_get", NULL, tmpstr); 135 153 154 if(tmpstr == NULL) 155 { 156 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 157 goto end; 158 } 159 136 160 //get streamlink1 137 161 streamlink1 = getxmlentry(tmpstr, "url="); -
titan/plugins/tithek/solarmovie.h
r24309 r24319 94 94 streamurl = nowvideo("NowVideo.eu", tmpstr2, url); 95 95 } 96 else if(ret2 != NULL && count2 > 2 && ostrcmp(hname, "nowvideo.sx") == 0) 97 { 98 tmpstr2 = ostrcat(ret2[2].part, NULL, 0, 0); 99 tmpstr2 = string_replace("embed.php?v=", "", tmpstr2, 1); 100 streamurl = nowvideo("NowVideo.sx", tmpstr2, url); 101 } 102 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "nowvideo.sx") == 0) 103 { 104 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 105 tmpstr2 = string_replace("embed.php?v=", "", tmpstr2, 1); 106 debug(99, "tmpstr2: %s", tmpstr2, url); 107 streamurl = nowvideo("NowVideo.sx", tmpstr2, url); 108 } 109 else if(ret2 != NULL && count2 > 2 && ostrcmp(hname, "movshare.net") == 0) 110 { 111 tmpstr2 = ostrcat(ret2[2].part, NULL, 0, 0); 112 tmpstr2 = string_replace("embed.php?v=", "", tmpstr2, 1); 113 streamurl = movshare("MovShare.net", tmpstr2, url); 114 } 115 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "movshare.net") == 0) 116 { 117 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 118 tmpstr2 = string_replace("embed.php?v=", "", tmpstr2, 1); 119 debug(99, "tmpstr2: %s", tmpstr2, url); 120 streamurl = movshare("MovShare.net", tmpstr2, url); 121 } 122 96 123 free(ret2), ret2 = NULL; 97 124 } … … 128 155 { 129 156 drawscreen(load, 0, 0); 130 search = stringreplacechar(search, ' ', '+');131 157 char* tmpstr = NULL; 132 158 char* tmpstr1 = NULL; … … 140 166 char* file = NULL; 141 167 char* file1 = NULL; 168 search = strstrip(search); 169 search = stringreplacechar(search, ' ', '+'); 170 debug(99, "search: %s", search); 142 171 143 172 ip = ostrcat("www.solarmovie.so", NULL, 0, 0); … … 146 175 else 147 176 path = ostrcat("tv/search/", search, 0, 0); 148 177 149 178 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 150 179 titheklog(debuglevel, "/tmp/solarmovie_tmpstr", NULL, tmpstr); … … 330 359 else if(ostrcmp(tmphname, "nowvideo.eu") == 0) 331 360 hname = ostrcat("NowVideo.eu", NULL, 0, 0); 361 else if(ostrcmp(tmphname, "nowvideo.sx") == 0) 362 hname = ostrcat("NowVideo.sx", NULL, 0, 0); 363 else if(ostrcmp(tmphname, "movshare.net") == 0) 364 hname = ostrcat("MovShare.net", NULL, 0, 0); 332 365 else 333 366 { -
titan/plugins/tithek/streamcloud.h
r24310 r24319 35 35 sleep(20); 36 36 titheklog(debuglevel, "/tmp/streamcould1_get", NULL, tmpstr); 37 37 38 if(tmpstr == NULL) 39 { 40 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 41 goto end; 42 } 43 38 44 cookie = string_resub("Set-Cookie: afc=", ";", tmpstr, 0); 39 45 debug(99, "cookie: %s", cookie); … … 102 108 titheklog(debuglevel, "/tmp/streamcould2_post", NULL, tmpstr); 103 109 110 if(tmpstr == NULL) 111 { 112 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 113 goto end; 114 } 115 104 116 // streamlink = oregex(".*file: \".*(http:.*video.mp4).*\".*", tmpstr); 105 117 streamlink = string_resub("file: \"", "\"", tmpstr, 0); -
titan/plugins/tithek/tithek.c
r24056 r24319 23 23 #include "ard.h" 24 24 #include "zdf.h" 25 #include "movshare.h" 25 26 26 27 char pluginname[] = "TiTan Mediathek"; -
titan/plugins/tithek/tithek_header.h
r24251 r24319 26 26 char* xvidstage(char* host, char* file, char* hosterurl); 27 27 char* nowvideo(char* host, char* file, char* hosterurl); 28 char* movshare(char* host, char* file, char* hosterurl); 28 29 int myvideo_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag); 29 30 int youtube_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr); -
titan/plugins/tithek/vidstream.h
r24314 r24319 46 46 titheklog(debuglevel, "/tmp/vidstream1_get", NULL, tmpstr); 47 47 48 sleep(1); 48 // sleep(1); 49 50 if(tmpstr == NULL) 51 { 52 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 53 goto end; 54 } 49 55 50 56 if(ostrstr(tmpstr, "<b>File Not Found</b>") != NULL) … … 123 129 titheklog(debuglevel, "/tmp/vidstream2_post", NULL, tmpstr); 124 130 125 sleep(1); 131 if(tmpstr == NULL) 132 { 133 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 134 goto end; 135 } 136 137 // sleep(1); 126 138 streamlink = string_resub("file: \"", "\",", tmpstr, 0); 127 139 -
titan/plugins/tithek/xvidstage.h
r24315 r24319 53 53 send = ostrcat(send, "\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n", 1, 0); 54 54 debug(99, "send: %s", send); 55 56 char* line = NULL;57 char* lines = NULL;58 char* cmd = NULL;59 55 60 56 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 61 57 debug(99, "tmpstr: %s", tmpstr); 62 58 titheklog(debuglevel, "/tmp/xvidstage1_get", NULL, tmpstr); 59 63 60 free(send); send = NULL; 64 61 65 sleep(1);62 // sleep(1); 66 63 if(tmpstr == NULL) 67 64 { 68 textbox(_("Message"), _("Th is file doesn't exist, or has been removed") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);65 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 69 66 goto end; 70 67 } … … 141 138 142 139 // hier wird nun ein captcha bild auth verlangt geht also erstmal nicht mehr 143 if( post== NULL)140 if(tmpstr == NULL) 144 141 { 145 textbox(_("Message"), _("Th is file doesn't exist, or has been removed") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);142 textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 146 143 goto end; 147 144 }
Note: See TracChangeset
for help on using the changeset viewer.