Changeset 24311
- Timestamp:
- 10/14/13 19:53:33 (9 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/kinox.h
r24309 r24311 41 41 else if(ostrcmp(hname, "NowVideo.eu") == 0) 42 42 streamurl = nowvideo("NowVideo.eu", id, url); 43 else if(ostrcmp(hname, "NowVideo.sx") == 0) 44 streamurl = nowvideo("NowVideo.sx", id, url); 43 45 44 46 debug(99, "streamurl1: %s", streamurl); … … 405 407 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0) 406 408 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 409 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 410 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 407 411 else 408 412 { … … 475 479 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0) 476 480 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 481 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 482 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 477 483 else 478 484 { … … 540 546 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0) 541 547 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 548 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 549 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 542 550 else 543 551 { … … 605 613 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 606 614 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0) 615 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 616 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 607 617 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 608 618 else … … 804 814 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 805 815 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0) 816 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 817 else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0) 806 818 tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0); 807 819 else -
titan/plugins/tithek/nowvideo.h
r24251 r24311 16 16 if(host == NULL || file == NULL) return NULL; 17 17 18 unlink("/tmp/nowvideo1_get"); 19 unlink("/tmp/nowvideo2_get"); 20 18 21 tmphost = ostrcat(tmphost, host, 1, 0); 19 22 tmpfile = ostrcat("/video/", file, 0, 0); … … 32 35 33 36 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 34 35 titheklog(debuglevel, "/tmp/nowvideo1 ", NULL, tmpstr);37 debug(99, "tmpstr: %s", tmpstr); 38 titheklog(debuglevel, "/tmp/nowvideo1_get", NULL, tmpstr); 36 39 37 40 if(ostrstr(tmpstr, "The file is being transfered to our other servers. This may take few minutes.") != NULL) … … 43 46 file = string_resub("flashvars.file=\"", "\";", tmpstr, 0); 44 47 filekey = string_resub("flashvars.filekey=\"", "\";", tmpstr, 0); 48 49 if(filekey == NULL) 50 { 51 char* searchstr = string_resub("flashvars.filekey=", ";", tmpstr, 0); 52 debug(99, "searchstr: %s", searchstr); 53 searchstr = ostrcat(searchstr, "=\"", 1, 0); 54 filekey = string_resub(searchstr, "\";", tmpstr, 0); 55 } 56 debug(99, "filekey: %s", filekey); 57 45 58 46 59 free(tmpfile), tmpfile = NULL; … … 58 71 free(tmpstr), tmpstr = NULL; 59 72 tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1); 60 61 titheklog(debuglevel, "/tmp/nowvideo2 ", NULL, tmpstr);73 debug(99, "tmpstr: %s", tmpstr); 74 titheklog(debuglevel, "/tmp/nowvideo2_get", NULL, tmpstr); 62 75 63 76 sleep(1);
Note: See TracChangeset
for help on using the changeset viewer.