Changeset 24311


Ignore:
Timestamp:
10/14/13 19:53:33 (9 years ago)
Author:
obi
Message:

fix

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/kinox.h

    r24309 r24311  
    4141                else if(ostrcmp(hname, "NowVideo.eu") == 0)
    4242                        streamurl = nowvideo("NowVideo.eu", id, url);
     43                else if(ostrcmp(hname, "NowVideo.sx") == 0)
     44                        streamurl = nowvideo("NowVideo.sx", id, url);
    4345                                       
    4446                debug(99, "streamurl1: %s", streamurl);
     
    405407                                        else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0)
    406408                                                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);
    407411                                        else
    408412                                        {
     
    475479                                                else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0)
    476480                                                        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);
    477483                                                else
    478484                                                {
     
    540546                                                else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.eu") == 0)
    541547                                                        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);
    542550                                                else
    543551                                                {
     
    605613                                                        tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0);
    606614                                                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)
    607617                                                        tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0);
    608618                                                else
     
    804814                                                tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0);
    805815                                        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)
    806818                                                tmpstr2 = ostrcat(ret2[3].part, NULL, 0, 0);
    807819                                        else
  • titan/plugins/tithek/nowvideo.h

    r24251 r24311  
    1616        if(host == NULL || file == NULL) return NULL;
    1717
     18        unlink("/tmp/nowvideo1_get");
     19        unlink("/tmp/nowvideo2_get");
     20
    1821        tmphost = ostrcat(tmphost, host, 1, 0);
    1922        tmpfile = ostrcat("/video/", file, 0, 0);
     
    3235
    3336        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);
    3639
    3740        if(ostrstr(tmpstr, "The file is being transfered to our other servers. This may take few minutes.") != NULL)
     
    4346        file = string_resub("flashvars.file=\"", "\";", tmpstr, 0);
    4447        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
    4558
    4659        free(tmpfile), tmpfile = NULL;
     
    5871        free(tmpstr), tmpstr = NULL;
    5972        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);
    6275
    6376        sleep(1);
Note: See TracChangeset for help on using the changeset viewer.