Changeset 36961


Ignore:
Timestamp:
01/26/16 04:07:55 (8 years ago)
Author:
obi
Message:

update tithek

Location:
titan
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localparser_secret/bs.sh

    r36960 r36961  
    185185                 j = index(substr($0, i), "</a>") - 1
    186186                 title = substr($0, i, j)
    187                  print title "#" SRC " " SRC " video " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#0"
     187#                 print title "#" SRC " " SRC " video " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#0"
     188                 print SRC " " SRC " video " url
    188189              }
    189190              next
     
    214215                  j = index(substr($0, i), "\"") - 1
    215216                  url = substr($0, i, j)
    216                   print "Originalvideo#" url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#14"
     217
     218                  i = index($0, "<a href=\"") + 16
     219                  j = index(substr($0, i), "/") - 1
     220                  title = substr($0, i, j)
     221                 
     222#                  print "Originalvideo#" url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#14"
     223                  print title "#" url "#http://atemio.dyndns.tv/mediathek/menu/" title ".jpg#" title ".jpg#" NAME "#14"
    217224               }
    218225               next
     
    224231
    225232' >/tmp/tithek/$PARSER.video.list
    226         echo "/tmp/tithek/$PARSER.video.list"
     233        cat "/tmp/tithek/$PARSER.video.list"
    227234}
    228235
  • titan/plugins/tithek/giga.h

    r36184 r36961  
    44char* giga(char* link)
    55{
    6         int debuglevel = getconfigint("debuglevel", NULL);
     6//      int debuglevel = getconfigint("debuglevel", NULL);
    77        char* streamurl = NULL, *tmpstr = NULL, *title = NULL, *pic = NULL, *label = NULL;
    88
  • titan/plugins/tithek/movie2k.h

    r36159 r36961  
    66        debug(99, "link: %s", link);
    77        int debuglevel = getconfigint("debuglevel", NULL);
    8         char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *url = NULL, *streamurl = NULL, *tmppath = NULL, *tmphost = NULL, *pos = NULL;
     8        char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *url = NULL, *streamurl = NULL, *tmphost = NULL;
    99        titheklog(debuglevel, "/tmp/movie2k_streamurl_url0", NULL, NULL, NULL, link);
    1010
  • titan/plugins/tithek/nbastream.h

    r36208 r36961  
    189189                streamurl = ostrcat(streamurl, "|User-Agent=libcurl-agent/1.0|Referer=http://cdn.p2pcast.tv/jwplayer.flash.swf", 1, 0);
    190190
    191 end:
     191//end:
    192192
    193193        free(tmpstr), tmpstr = NULL;
  • titan/plugins/tithek/streamlive.h

    r36186 r36961  
    2121
    2222        char* streamurl1 = NULL;
    23         char* title = NULL;
    24         char* pic = NULL;
     23//      char* title = NULL;
     24//      char* pic = NULL;
    2525        char* typemsg = NULL;
    2626
  • titan/plugins/tithek/tithek.h

    r36938 r36961  
    445445
    446446//      if(cmpfilenameext(filename, ".sh") == 0)
    447         if(ostrstr(filename, ".sh ") != NULL && ostrstr(filename, ".sh init") == NULL)
     447        if(ostrstr(filename, ".sh ") != NULL && ostrstr(filename, ".sh init") == NULL && ostrstr(filename, ".sh video") == NULL)
    448448        {
    449449                printf("[tithek] cmd: %s\n", filename);
     
    454454                debug(10, "file: %s", file);
    455455        }
     456        else if(ostrstr(filename, ".sh video") != NULL)
     457        {
     458                printf("[tithek] video..... cmd: %s\n", filename);
     459                debug(10, "cmd: %s", filename);
     460                file = command(filename);
     461                file = string_newline(file);
     462                printf("[tithek] file: %s\n", file);
     463                debug(10, "file: %s", file);
     464        }
    456465        else
    457466                file = ostrcat(filename, NULL, 0, 0);   
     
    467476        pay = getconfigint("tithek_pay", NULL);
    468477
     478        char* tmpstr = NULL;
     479
    469480        while(fgets(fileline, MINMALLOC, fd) != NULL)
    470481        {
    471482                if(fileline[0] == '\n')
    472483                        continue;
    473                 len = strlen(fileline) - 1;
    474                 if(fileline[len] == '\n')
    475                         fileline[len] = '\0';
    476                 if(fileline[len - 1] == '\r')
    477                         fileline[len - 1] = '\0';
    478 
     484
     485                if(ostrstr(filename, ".sh hoster") != NULL)
     486                {
     487                        printf("[tithek] hoster fileline: %s\n", fileline);
     488                        tmpstr = command(fileline);
     489                        printf("[tithek] hoster tmpstr: %s\n", tmpstr);
     490
     491                        len = strlen(tmpstr) - 1;
     492                        if(tmpstr[len] == '\n')
     493                                tmpstr[len] = '\0';
     494                        if(tmpstr[len - 1] == '\r')
     495                                tmpstr[len - 1] = '\0';
     496                }
     497                else
     498                {
     499                        len = strlen(fileline) - 1;
     500                        if(fileline[len] == '\n')
     501                                fileline[len] = '\0';
     502                        if(fileline[len - 1] == '\r')
     503                                fileline[len - 1] = '\0';
     504                }
    479505                linecount++;
    480506
    481507                if(last == NULL) last = tmplast;
    482                 last = addtithek(fileline, len + 2, linecount, last, pay);
     508                if(ostrstr(filename, ".sh hoster") != NULL)
     509                        last = addtithek(tmpstr, len + 2, linecount, last, pay);
     510                else
     511                        last = addtithek(fileline, len + 2, linecount, last, pay);
    483512                if(last != NULL) tmplast = last;
     513                free(tmpstr), tmpstr = NULL;
    484514        }
    485515
  • titan/plugins/tithek/tithek_header.h

    r36254 r36961  
    88void amazon_deinit();
    99void localscript_init(char* titheklink, char* tithekfile);
     10int b64dec(char* dest, char* src);
    1011
    1112void titheklog(int debuglevel, char* name1, char* name2, char* name3, char* name4, char* content)
Note: See TracChangeset for help on using the changeset viewer.