Changeset 38982


Ignore:
Timestamp:
09/24/16 16:22:03 (7 years ago)
Author:
obi
Message:

test

File:
1 edited

Legend:

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

    r38926 r38982  
    1212        string_tolower(tmplink);
    1313
    14         if(ostrstr(tmplink, "sockshare") != NULL)
    15                 streamurl = putlocker(url);
    16         else if(ostrstr(tmplink, "putlocker") != NULL)
    17                 streamurl = firedrive(url);
    18         else if(ostrstr(tmplink, "filenuke") != NULL)
    19                 streamurl = filenuke(url);
    20         else if(ostrstr(tmplink, "streamcloud") != NULL)
    21                 streamurl = streamcloud(url);
    22         else if(ostrstr(tmplink, "vidstream") != NULL)
    23                 streamurl = vidstream(url);
    24         else if(ostrstr(tmplink, "flashx") != NULL)
    25                 streamurl = flashx(url);
    26         else if(ostrstr(tmplink, "xvidstage") != NULL)
    27                 streamurl = xvidstage(url);
    28         else if(ostrstr(tmplink, "nowvideo") != NULL)
    29                 streamurl = nowvideo(url);
    30         else if(ostrstr(tmplink, "movshare") != NULL || ostrstr(tmplink, "wholecloud") != NULL)
    31                 streamurl = movshare(url);
    32         else if(ostrstr(tmplink, "movreel") != NULL)
    33                 streamurl = movreel(url);
    34         else if(ostrstr(tmplink, "novamov") != NULL || ostrstr(tmplink, "auroravid") != NULL)
    35                 streamurl = novamov(url);
    36         else if(ostrstr(tmplink, "divxstage") != NULL || ostrstr(tmplink, "cloudtime") != NULL)
    37                 streamurl = divxstage(url);
    38         else if(ostrstr(tmplink, "primeshare") != NULL)
    39                 streamurl = primeshare(url);
    40         else if(ostrstr(tmplink, "faststream") != NULL || ostrstr(tmplink, "fastvideo") != NULL)
    41                 streamurl = faststream(url);
    42         else if(ostrstr(tmplink, "played") != NULL)
    43                 streamurl = played(url);
    44         else if(ostrstr(tmplink, "videoweed") != NULL)
    45                 streamurl = videoweed(url);
    46         else if(ostrstr(tmplink, "firedrive") != NULL)
    47                 streamurl = firedrive(url);
    48         else if(ostrstr(tmplink, "shared") != NULL)
    49                 streamurl = shared(url);
    50         else if(ostrstr(tmplink, "thefile") != NULL)
    51                 streamurl = thefile(url);
    52         else if(ostrstr(tmplink, "youtu") != NULL)
    53                 streamurl = youtube(url);
    54         else if(ostrstr(tmplink, "myvideo") != NULL)
    55                 streamurl = myvideo(url);
    56         else if(ostrstr(tmplink, "promptfile") != NULL)
    57                 streamurl = promptfile(url);
    58         else if(ostrstr(tmplink, "letwatch") != NULL || ostrstr(tmplink, "realvid") != NULL)
    59                 streamurl = letwatch(url);
    60         else if(ostrstr(tmplink, "vidbull") != NULL)
    61                 streamurl = vidbull(url);
    62         else if(ostrstr(tmplink, "vodlocker") != NULL)
    63                 streamurl = vodlocker(url);
    64         else if(ostrstr(tmplink, "vidto") != NULL)
    65                 streamurl = vidto(url);
    66         else if(ostrstr(tmplink, "amazon") != NULL)
    67                 streamurl = amazon(url);
    68         else if(ostrstr(tmplink, "thevideo") != NULL)
    69                 streamurl = thevideo(url);
    70         else if(ostrstr(tmplink, "mightyupload") != NULL)
    71                 streamurl = mightyupload(url);
    72         else if(ostrstr(tmplink, "cloudzilla") != NULL)
    73                 streamurl = cloudzilla(url);
    74         else if(ostrstr(tmplink, "vivo") != NULL)
    75                 streamurl = vivo(url);
    76         else if(ostrstr(tmplink, "streamlive") != NULL)
    77                 streamurl = streamlive(url, -1);
    78         else if(ostrstr(tmplink, "cricfree") != NULL)
    79                 streamurl = cricfree(url, 0);
    80         else if(ostrstr(tmplink, "zerocast") != NULL)
    81                 streamurl = zerocast(url, 0);
    82         else if(ostrstr(tmplink, "p2pcast") != NULL)
    83                 streamurl = p2pcast(url);
    84         else if(ostrstr(tmplink, "vidzi") != NULL)
    85                 streamurl = vidzi(url);
    86         else if(ostrstr(tmplink, "vid.ag") != NULL)
    87                 streamurl = vidag(url);
    88         else
    89         {
    90                 char* cmd = NULL;
    91                 cmd = ostrcat("/tmp/localhoster/hoster.sh get ", url, 0, 0);
    92                 streamurl = command(cmd);
    93                 streamurl = string_newline(streamurl);
    94                 free(cmd), cmd = NULL;
    95                 if(streamurl == NULL)
    96                         textbox(_("Message"), _("The hoster is not yet supported !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0);
     14        char* cmd = NULL;
     15        cmd = ostrcat("/tmp/localhoster/hoster.sh get ", tmplink, 0, 0);
     16        streamurl = command(cmd);
     17        streamurl = string_newline(streamurl);
     18        free(cmd), cmd = NULL;
     19               
     20        if(streamurl == NULL)
     21        {
     22                if(ostrstr(tmplink, "sockshare") != NULL)
     23                        streamurl = putlocker(url);
     24                else if(ostrstr(tmplink, "putlocker") != NULL)
     25                        streamurl = firedrive(url);
     26                else if(ostrstr(tmplink, "filenuke") != NULL)
     27                        streamurl = filenuke(url);
     28                else if(ostrstr(tmplink, "streamcloud") != NULL)
     29                        streamurl = streamcloud(url);
     30                else if(ostrstr(tmplink, "vidstream") != NULL)
     31                        streamurl = vidstream(url);
     32                else if(ostrstr(tmplink, "flashx") != NULL)
     33                        streamurl = flashx(url);
     34                else if(ostrstr(tmplink, "xvidstage") != NULL)
     35                        streamurl = xvidstage(url);
     36                else if(ostrstr(tmplink, "nowvideo") != NULL)
     37                        streamurl = nowvideo(url);
     38                else if(ostrstr(tmplink, "movshare") != NULL || ostrstr(tmplink, "wholecloud") != NULL)
     39                        streamurl = movshare(url);
     40                else if(ostrstr(tmplink, "movreel") != NULL)
     41                        streamurl = movreel(url);
     42                else if(ostrstr(tmplink, "novamov") != NULL || ostrstr(tmplink, "auroravid") != NULL)
     43                        streamurl = novamov(url);
     44                else if(ostrstr(tmplink, "divxstage") != NULL || ostrstr(tmplink, "cloudtime") != NULL)
     45                        streamurl = divxstage(url);
     46                else if(ostrstr(tmplink, "primeshare") != NULL)
     47                        streamurl = primeshare(url);
     48                else if(ostrstr(tmplink, "faststream") != NULL || ostrstr(tmplink, "fastvideo") != NULL)
     49                        streamurl = faststream(url);
     50                else if(ostrstr(tmplink, "played") != NULL)
     51                        streamurl = played(url);
     52                else if(ostrstr(tmplink, "videoweed") != NULL)
     53                        streamurl = videoweed(url);
     54                else if(ostrstr(tmplink, "firedrive") != NULL)
     55                        streamurl = firedrive(url);
     56                else if(ostrstr(tmplink, "shared") != NULL)
     57                        streamurl = shared(url);
     58                else if(ostrstr(tmplink, "thefile") != NULL)
     59                        streamurl = thefile(url);
     60                else if(ostrstr(tmplink, "youtu") != NULL)
     61                        streamurl = youtube(url);
     62                else if(ostrstr(tmplink, "myvideo") != NULL)
     63                        streamurl = myvideo(url);
     64                else if(ostrstr(tmplink, "promptfile") != NULL)
     65                        streamurl = promptfile(url);
     66                else if(ostrstr(tmplink, "letwatch") != NULL || ostrstr(tmplink, "realvid") != NULL)
     67                        streamurl = letwatch(url);
     68                else if(ostrstr(tmplink, "vidbull") != NULL)
     69                        streamurl = vidbull(url);
     70                else if(ostrstr(tmplink, "vodlocker") != NULL)
     71                        streamurl = vodlocker(url);
     72                else if(ostrstr(tmplink, "vidto") != NULL)
     73                        streamurl = vidto(url);
     74                else if(ostrstr(tmplink, "amazon") != NULL)
     75                        streamurl = amazon(url);
     76                else if(ostrstr(tmplink, "thevideo") != NULL)
     77                        streamurl = thevideo(url);
     78                else if(ostrstr(tmplink, "mightyupload") != NULL)
     79                        streamurl = mightyupload(url);
     80                else if(ostrstr(tmplink, "cloudzilla") != NULL)
     81                        streamurl = cloudzilla(url);
     82                else if(ostrstr(tmplink, "vivo") != NULL)
     83                        streamurl = vivo(url);
     84                else if(ostrstr(tmplink, "streamlive") != NULL)
     85                        streamurl = streamlive(url, -1);
     86                else if(ostrstr(tmplink, "cricfree") != NULL)
     87                        streamurl = cricfree(url, 0);
     88                else if(ostrstr(tmplink, "zerocast") != NULL)
     89                        streamurl = zerocast(url, 0);
     90                else if(ostrstr(tmplink, "p2pcast") != NULL)
     91                        streamurl = p2pcast(url);
     92                else if(ostrstr(tmplink, "vidzi") != NULL)
     93                        streamurl = vidzi(url);
     94                else if(ostrstr(tmplink, "vid.ag") != NULL)
     95                        streamurl = vidag(url);
     96                else
     97                {
     98                        cmd = ostrcat("/tmp/localhoster/hoster.sh get ", url, 0, 0);
     99                        streamurl = command(cmd);
     100                        streamurl = string_newline(streamurl);
     101                        free(cmd), cmd = NULL;
     102                        if(streamurl == NULL)
     103                                textbox(_("Message"), _("The hoster is not yet supported !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0);
     104                }
    97105        }
    98106
Note: See TracChangeset for help on using the changeset viewer.