Changeset 24319


Ignore:
Timestamp:
10/15/13 03:03:05 (10 years ago)
Author:
obi
Message:

[tithek] update and add hoster movshare

Location:
titan/plugins/tithek
Files:
1 added
10 edited

Legend:

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

    r24314 r24319  
    4545        titheklog(debuglevel, "/tmp/filenuke1_get", NULL, tmpstr);
    4646
     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
    4753//      sleep(2);
    4854
    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)
    5056        {
    5157                error = string_resub("<td align=\"center\" valign=\"middle\">", "</td>", tmpstr, 0);
     
    115121        debug(99, "post: %s", post);
    116122        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        }
    117129
    118130        free(tmpstr),tmpstr = NULL;
  • titan/plugins/tithek/kinox.h

    r24311 r24319  
    4343                else if(ostrcmp(hname, "NowVideo.sx") == 0)
    4444                        streamurl = nowvideo("NowVideo.sx", id, url);
     45                else if(ostrcmp(hname, "MovShare.net") == 0)
     46                        streamurl = movshare("MovShare.net", id, url);
    4547                                       
    4648                debug(99, "streamurl1: %s", streamurl);
     
    7981        {
    8082                drawscreen(load, 0, 0);
    81                 search = stringreplacechar(search, ' ', '+');
    8283                char* tmpstr = NULL;
    8384                char* tmpstr1 = NULL;
     
    9293                char* path = NULL;
    9394                char* menu = NULL;
     95
     96                search = strstrip(search);
     97                search = stringreplacechar(search, ' ', '+');
     98                debug(99, "search: %s", search);
    9499
    95100                ip = ostrcat("kinox.to", NULL, 0, 0);
     
    409414                                        else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0)
    410415                                                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);
    411418                                        else
    412419                                        {
     
    481488                                                else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0)
    482489                                                        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);
    483492                                                else
    484493                                                {
     
    548557                                                else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0)
    549558                                                        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);
    550561                                                else
    551562                                                {
     
    616627                                                else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0)
    617628                                                        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);
    618631                                                else
    619632                                                {
     
    817830                                        else if(ret2 != NULL && count2 > 3 && ostrcmp(hname, "NowVideo.sx") == 0)
    818831                                                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);
    819834                                        else
    820835                                        {
     
    893908        {
    894909                drawscreen(load, 0, 0);
     910                search = strstrip(search);
    895911                search = stringreplacechar(search, ' ', '+');
     912                debug(99, "search: %s", search);
    896913
    897914                char* tmpstr = NULL;
  • titan/plugins/tithek/movie4k.h

    r24309 r24319  
    7373                        streamurl = nowvideo("NowVideo.eu", tmpstr2, url);
    7474                }
     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
    7582                free(ret2), ret2 = NULL;
    7683        }
     
    105112        char* pic = NULL;
    106113        char* type = NULL;
    107 
     114        int debuglevel = getconfigint("debuglevel", NULL);
    108115
    109116        if(listbox == NULL || listbox->select == NULL || listbox->select->handle == NULL)
     
    124131        {
    125132                drawscreen(load, 0, 0);
     133                search = strstrip(search);
    126134                search = stringreplacechar(search, ' ', '+');
     135                debug(99, "search: %s", search);
    127136
    128137                char* send = NULL;
     
    133142                debug(99, "send: %s", send);
    134143
    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);
    136145                free(send); send = NULL;
     146                debug(99, "tmpstr: %s", tmpstr);
     147                titheklog(debuglevel, "/tmp/movie4k_search", NULL, tmpstr);
    137148
    138149                char* key = string_resub("securekey=", "&search", tmpstr, 0);
     
    418429                                        else if(ostrcmp(tmphname, "Nowvideo") == 0)
    419430                                                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);
    422433                                        else
    423434                                        {
     
    481492                                                else if(ostrcmp(tmphname, "Nowvideo") == 0)
    482493                                                        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);
    485496                                                else
    486497                                                {
     
    537548                                                else if(ostrcmp(tmphname, "Nowvideo") == 0)
    538549                                                        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);
    541552                                                else
    542553                                                {
     
    593604                                                else if(ostrcmp(tmphname, "Nowvideo") == 0)
    594605                                                        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);
    597608                                                else
    598609                                                {
  • titan/plugins/tithek/putlocker.h

    r24310 r24319  
    3434        debug(99, "tmpstr: %s", tmpstr);
    3535        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        }
    3648       
    3749        phpsessid = getxmlentry(tmpstr, "PHPSESSID=");
     
    8092        debug(99, "tmpstr: %s", tmpstr);
    8193        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        }
    82100       
    83101        if(ostrstr(tmpstr, "warning_message") != NULL)
     
    134152        titheklog(debuglevel, "/tmp/putlocker3_tmpstr_get", NULL, tmpstr);
    135153
     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
    136160        //get streamlink1
    137161        streamlink1 = getxmlentry(tmpstr, "url=");
  • titan/plugins/tithek/solarmovie.h

    r24309 r24319  
    9494                                streamurl = nowvideo("NowVideo.eu", tmpstr2, url);
    9595                        }
     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
    96123                        free(ret2), ret2 = NULL;
    97124                }
     
    128155        {
    129156                drawscreen(load, 0, 0);
    130                 search = stringreplacechar(search, ' ', '+');
    131157                char* tmpstr = NULL;
    132158                char* tmpstr1 = NULL;
     
    140166                char* file = NULL;
    141167                char* file1 = NULL;
     168                search = strstrip(search);
     169                search = stringreplacechar(search, ' ', '+');
     170                debug(99, "search: %s", search);
    142171
    143172                ip = ostrcat("www.solarmovie.so", NULL, 0, 0);
     
    146175                else
    147176                        path = ostrcat("tv/search/", search, 0, 0);
    148        
     177
    149178                tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0);
    150179                titheklog(debuglevel, "/tmp/solarmovie_tmpstr", NULL, tmpstr);
     
    330359                                        else if(ostrcmp(tmphname, "nowvideo.eu") == 0)
    331360                                                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);
    332365                                        else
    333366                                        {
  • titan/plugins/tithek/streamcloud.h

    r24310 r24319  
    3535        sleep(20);
    3636        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
    3844        cookie = string_resub("Set-Cookie: afc=", ";", tmpstr, 0);     
    3945        debug(99, "cookie: %s", cookie);
     
    102108        titheklog(debuglevel, "/tmp/streamcould2_post", NULL, tmpstr);
    103109
     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
    104116//      streamlink = oregex(".*file: \".*(http:.*video.mp4).*\".*", tmpstr);
    105117        streamlink = string_resub("file: \"", "\"", tmpstr, 0);
  • titan/plugins/tithek/tithek.c

    r24056 r24319  
    2323#include "ard.h"
    2424#include "zdf.h"
     25#include "movshare.h"
    2526
    2627char pluginname[] = "TiTan Mediathek";
  • titan/plugins/tithek/tithek_header.h

    r24251 r24319  
    2626char* xvidstage(char* host, char* file, char* hosterurl);
    2727char* nowvideo(char* host, char* file, char* hosterurl);
     28char* movshare(char* host, char* file, char* hosterurl);
    2829int myvideo_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag);
    2930int 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  
    4646        titheklog(debuglevel, "/tmp/vidstream1_get", NULL, tmpstr);
    4747
    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        }
    4955
    5056        if(ostrstr(tmpstr, "<b>File Not Found</b>") != NULL)
     
    123129        titheklog(debuglevel, "/tmp/vidstream2_post", NULL, tmpstr);
    124130
    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);
    126138        streamlink = string_resub("file: \"", "\",", tmpstr, 0);
    127139
  • titan/plugins/tithek/xvidstage.h

    r24315 r24319  
    5353        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);       
    5454        debug(99, "send: %s", send);
    55        
    56         char* line = NULL;
    57         char* lines = NULL;
    58         char* cmd = NULL;
    5955
    6056        tmpstr = gethttpreal(tmphost, tmpfile, 80, NULL, NULL, NULL, 0, send, NULL, 5000, 1);
    6157        debug(99, "tmpstr: %s", tmpstr);
    6258        titheklog(debuglevel, "/tmp/xvidstage1_get", NULL, tmpstr);
     59
    6360        free(send); send = NULL;
    6461
    65         sleep(1);
     62//      sleep(1);
    6663        if(tmpstr == NULL)
    6764        {
    68                 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);
     65                textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
    6966                goto end;
    7067        }
     
    141138
    142139// hier wird nun ein captcha bild auth verlangt geht also erstmal nicht mehr
    143         if(post == NULL)
     140        if(tmpstr == NULL)
    144141        {
    145                 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);
     142                textbox(_("Message"), _("The page is temporarily unavailable") , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0);
    146143                goto end;
    147144        }
Note: See TracChangeset for help on using the changeset viewer.