Changeset 22199


Ignore:
Timestamp:
07/02/13 18:01:36 (10 years ago)
Author:
obi
Message:

[tithek] add mlehd parser

Location:
titan
Files:
2 added
5 edited

Legend:

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

    r21018 r22199  
    2020        char* post = NULL;
    2121        char* streamlink = NULL;
     22        char* cmd = NULL;
    2223
    2324        char* tmpstr2 = NULL;
     
    9697        if(getconfigint("debuglevel", NULL) == 99)
    9798                writesys("/tmp/filenuke2_tmpstr_post1", post, 0);
    98 
    99 //      gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/post", NULL, NULL, 0, send, NULL, 5000, 0);
    100 //      cmd = ostrcat(cmd, "cat /tmp/tithek/post | zcat", 1, 0);
    101 //      debug(99, "cmd: %s", cmd);
    102 //      post = command(cmd);
    103 //      writesys("/tmp/filenuke2_post1", post, 0);
    104 //      free(cmd); cmd = NULL;
    105 
     99//
     100        gethttpreal(tmphost, tmpfile, 80, "/tmp/tithek/post", NULL, NULL, 0, send, NULL, 5000, 0);
     101        cmd = ostrcat("cat /tmp/tithek/post | zcat", NULL, 0, 0);
     102        debug(99, "cmd: %s", cmd);
     103        post = command(cmd);
     104        writesys("/tmp/filenuke2_post1", post, 0);
     105        free(cmd); cmd = NULL;
     106//
    106107        free(tmpstr),tmpstr = NULL;
    107108        tmpstr = string_resub(";return p}('", ");'", post, 0);
  • titan/plugins/tithek/tithek.c

    r22150 r22199  
    1919#include "solarmovie.h"
    2020#include "movie4k.h"
     21#include "mlehd.h"
    2122
    2223char pluginname[] = "TiTan Mediathek";
  • titan/plugins/tithek/tithek.h

    r22175 r22199  
    4646//flag 34       - movie4k hoster de
    4747//flag 35       - movie4k hoster other
     48//flag 36       - movie4k hoster series
     49//flag 37       - mlehd
     50
    4851//flag 50       - beeg
    4952//flag 66   - coming soon dummy
     
    8083{
    8184        int ret = 0, i = 0, skip = 0;
    82         char* tmpstr = NULL, *flag = NULL, *cmd = NULL;
    83 
     85        char* tmpstr = NULL, *flag = NULL, *cmd = NULL, *tmp = NULL;
    8486        if(node == NULL) return 1;
    8587
     
    146148        else if(node->flag == 9999)
    147149        {
    148                 char* tmp = NULL;
    149150/*
    150151                //cmd = ostrcat(cmd, "wget -s http://", 1, 0);
     
    164165                        skip = 1;
    165166
    166                 free(tmp); tmp = NULL;
    167                 free(cmd), cmd = NULL;
    168167*/
    169168        }
     
    175174        }
    176175
     176        free(tmp); tmp = NULL;
     177        free(cmd), cmd = NULL;
     178               
    177179        return 0;
    178180}
     
    10991101                        if(tmpstr != NULL) tmpstr1 = kinox(tmpstr, NULL, NULL, 7);
    11001102                }
     1103                else if(((struct tithek*)listbox->select->handle)->flag == 37)
     1104                {
     1105                        if(tmpstr != NULL) tmpstr1 = mlehd(tmpstr);
     1106                }
    11011107                else if(((struct tithek*)listbox->select->handle)->flag == 50)
    11021108                {
     
    15781584                                clearscreen(grid);
    15791585
    1580                                 if((((struct tithek*)listbox->select->handle)->flag == 2) || (((struct tithek*)listbox->select->handle)->flag == 4) || (((struct tithek*)listbox->select->handle)->flag == 5) || (((struct tithek*)listbox->select->handle)->flag == 6) || (((struct tithek*)listbox->select->handle)->flag == 7) || (((struct tithek*)listbox->select->handle)->flag == 8) || (((struct tithek*)listbox->select->handle)->flag == 12) || (((struct tithek*)listbox->select->handle)->flag == 14) || (((struct tithek*)listbox->select->handle)->flag == 15) || (((struct tithek*)listbox->select->handle)->flag == 16) || (((struct tithek*)listbox->select->handle)->flag == 17) || (((struct tithek*)listbox->select->handle)->flag == 18) || (((struct tithek*)listbox->select->handle)->flag == 19) || (((struct tithek*)listbox->select->handle)->flag == 20) || (((struct tithek*)listbox->select->handle)->flag == 24) || (((struct tithek*)listbox->select->handle)->flag == 25) || (((struct tithek*)listbox->select->handle)->flag == 26) || (((struct tithek*)listbox->select->handle)->flag == 27) || (((struct tithek*)listbox->select->handle)->flag == 50))
     1586                                if((((struct tithek*)listbox->select->handle)->flag == 2) || (((struct tithek*)listbox->select->handle)->flag == 4) || (((struct tithek*)listbox->select->handle)->flag == 5) || (((struct tithek*)listbox->select->handle)->flag == 6) || (((struct tithek*)listbox->select->handle)->flag == 7) || (((struct tithek*)listbox->select->handle)->flag == 8) || (((struct tithek*)listbox->select->handle)->flag == 12) || (((struct tithek*)listbox->select->handle)->flag == 14) || (((struct tithek*)listbox->select->handle)->flag == 15) || (((struct tithek*)listbox->select->handle)->flag == 16) || (((struct tithek*)listbox->select->handle)->flag == 17) || (((struct tithek*)listbox->select->handle)->flag == 18) || (((struct tithek*)listbox->select->handle)->flag == 19) || (((struct tithek*)listbox->select->handle)->flag == 20) || (((struct tithek*)listbox->select->handle)->flag == 24) || (((struct tithek*)listbox->select->handle)->flag == 25) || (((struct tithek*)listbox->select->handle)->flag == 26) || (((struct tithek*)listbox->select->handle)->flag == 27) || (((struct tithek*)listbox->select->handle)->flag == 37) || (((struct tithek*)listbox->select->handle)->flag == 50))
    15811587                                {
    15821588                                        submenu(listbox, load, title);
  • titan/plugins/tithek/tithek_header.h

    r22150 r22199  
    2727int movie4k_hoster(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title);
    2828int movie4k_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag);
    29 
     29char* mlehd(char* link);
    3030
    3131
  • titan/skins/tithek/tithekmainmenu/mainmenu.list

    r22165 r22199  
    1515Solarmovie#http://atemio.dyndns.tv/mediathek/mainmenu-solarmovie.list#http://atemio.dyndns.tv/mediathek/menu/solarmovie.jpg#solarmovie.jpg#TiThek#9999
    1616Movie4k#http://atemio.dyndns.tv/mediathek/mainmenu-movie4k.list#http://atemio.dyndns.tv/mediathek/menu/movie4k.jpg#movie4k.jpg#TiThek#9999
     17Mle-HD#http://atemio.dyndns.tv/mediathek/mainmenu-mlehd.list#http://atemio.dyndns.tv/mediathek/menu/mlehd.jpg#mlehd.jpg#TiThek#9999
Note: See TracChangeset for help on using the changeset viewer.