Changeset 18654


Ignore:
Timestamp:
11/18/12 19:57:37 (11 years ago)
Author:
obi
Message:

fix tithek

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

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

    r18399 r18654  
    1818                {                       
    1919                        video_id = ostrcat(video_id, ret1[1].part, 1, 0);
     20                        debug(99, "video_id: %s", video_id);
     21
     22                        video_id = stringreplacecharonce(video_id, '!', '#');
    2023                        debug(99, "video_id: %s", video_id);
    2124
     
    428431                searchname = ostrcat(searchname, ret0[0].part, 1, 0);
    429432                searchname = string_replace("http://kinox.to//Stream/", "", searchname, 0);
     433                searchname = string_replace("http://kinox.to/Stream/", "", searchname, 0);
    430434                searchname = string_replace(".html", "", searchname, 0);
    431435                debug(99, "searchname: %s", searchname);
     
    488492                                        hlink = string_replace_all("amp;", "", hlink, 1);
    489493                                        hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0);
     494
     495                                        hlink = string_replace("http://kinox.to//Stream/", "", hlink, 1);                                       
     496                                        hlink = string_replace("http://kinox.to/Stream/", "", hlink, 1);
     497                                                                               
    490498                                        pathnew = ostrcat("/aGET/Mirror/", hlink, 0, 0);
    491499                                        debug(99, "pathnew: %s", pathnew);
  • titan/plugins/tithek/putlocker.h

    r18652 r18654  
    7979        sleep(1);
    8080        free(send); send = NULL;
    81 
     81       
     82        if(!file_exist("/tmp/tithek/get"))
     83        {
     84                textbox(_("Message"), _("This file doesn't exist, or has been removed") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
     85                goto end;
     86        }
     87               
    8288        char* header = NULL;
    8389        header = command("cat /tmp/tithek/get");
Note: See TracChangeset for help on using the changeset viewer.