Changeset 36939


Ignore:
Timestamp:
01/25/16 00:17:05 (7 years ago)
Author:
obi
Message:

tithek fix solar

File:
1 edited

Legend:

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

    r36059 r36939  
    88        char* error = NULL;
    99
    10         if(link == NULL || ostrncmp("http://", link, 7)) return NULL;
     10        if(link == NULL || (ostrncmp("http://", link, 7) && ostrncmp("https://", link, 8))) return NULL;
    1111
    1212        tmphost = string_replace("http://", "", (char*)link, 0);
     
    2727        debug(99, "send: %s", send);
    2828
     29/*
    2930// ssl workaround
    3031        unlink("/tmp/.solar.cache");
     
    4142// ssl workaround end
    4243//      tmpstr = gethttpreal(tmphost, tmppath, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 0);
     44*/
     45        tmpstr = gethttps(link, NULL, NULL, NULL, NULL, NULL, 1);
    4346        debug(99, "tmpstr: %s", tmpstr);
    4447        free(send); send = NULL;
     
    160163                else
    161164                        path = ostrcat("tv/search/", search, 0, 0);
    162 
     165/*
    163166// ssl workaround
    164167                unlink("/tmp/.solar.cache");
     
    176179
    177180//              tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
     181*/
     182                url = ostrcat("https://", ip, 0, 0);
     183                url = ostrcat(url, "/", 1, 0);
     184                url = ostrcat(url, path, 1, 0);
     185                tmpstr = gethttps(url, NULL, NULL, NULL, NULL, NULL, 1);
     186                free(url), url = NULL;
     187
    178188                titheklog(debuglevel, "/tmp/solarmovie_tmpstr", NULL, NULL, NULL, tmpstr);
    179189
     
    202212                        title = string_resub("<a title=\"", "\"", tmpstr1, 0);
    203213       
    204                         url = ostrcat("http://www.solarmovie.ph", path, 0, 0);
     214                        url = ostrcat("https://www.solarmovie.ph", path, 0, 0);
    205215       
    206216                        debug(99, "---------------------------");
Note: See TracChangeset for help on using the changeset viewer.