Changeset 36972


Ignore:
Timestamp:
01/28/16 01:29:06 (7 years ago)
Author:
obi
Message:

fix

Location:
titan
Files:
3 edited

Legend:

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

    r36970 r36972  
    6464      }
    6565/^\}/ { if (table == "videos") {
    66            print title "#" SRC " " SRC " stream video/" id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#111"
     66           print title "#" SRC " " SRC " play video/" id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#111"
    6767           title = ""
    6868           id = ""
     
    9595}
    9696
    97 stream()
     97play()
    9898{
    9999        $curlbin -o - $URL$PARAM | sed -e 's/{/{\n/g' -e 's/,/,\n/g' -e 's/\[/\[\n/g' -e 's/\}/\n\}/g' -e 's/\]/\n\]/g' | awk -v PARSER=$PARSER -v NAME=$NAME '
     
    273273        mainmenu) $INPUT;;
    274274        videos) $INPUT;;
    275         stream) $INPUT;;
     275        play) $INPUT;;
    276276        tags) $INPUT;;
    277277        page) $INPUT;;
  • titan/mediathek/localparser_secret/bs.sh

    r36966 r36972  
     1
    12#!/bin/bash
    23# titannit box parser for burning series
     
    145146/<\/tr>/ { if (in_table_row == 1) {
    146147             if (episode != "") {
    147                 print title "#" SRC " " SRC " hoster " url "#http://atemio.dyndns.tv/mediathek/menu/s" PARAM2 "e" episode ".jpg#s" PARAM2 "e" episode ".jpg#" NAME "#0"
     148                print title "#" SRC " " SRC " hosterlist " url "#http://atemio.dyndns.tv/mediathek/menu/s" PARAM2 "e" episode ".jpg#s" PARAM2 "e" episode ".jpg#" NAME "#0"
    148149                title = ""
    149150                url = ""
     
    161162}
    162163
    163 hoster()
     164hosterlist()
    164165{
    165166        $wgetbin $URL$PARAM -O - | awk -v PARAM=$PARAM -v PARAM2=$PARAM2 -v SRC=$SRC -v NAME=$NAME '
    166 BEGIN { in_hoster = 0
     167BEGIN { in_hosterlist = 0
    167168        url = ""
    168169        title = ""
    169170      }
    170171
    171 /<h3>Hoster dieser Episode<\/h3>/ { in_hoster = 1
     172/<h3>Hoster dieser Episode<\/h3>/ { in_hosterlist = 1
    172173                                    next
    173174                                  }
    174175
    175 /href=\"/ { if (in_hoster == 1) {
     176/href=\"/ { if (in_hosterlist == 1) {
    176177               i = index($0, "href=\"") + 6
    177178               j = index(substr($0, i), "\">") - 1
     
    181182          }
    182183
    183 /<\/span> / { if (in_hoster == 1) {
     184/<\/span> / { if (in_hosterlist == 1) {
    184185                 i = index($0, "</span> ") + 8
    185186                 j = index(substr($0, i), "</a>") - 1
    186187                 title = substr($0, i, j)
    187                  print title "#" SRC " " SRC " video " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#111"
     188                 i = index($0, "</span> ") + 8
     189                 j = index(substr($0, i), " -") - 1
     190                 pic = substr($0, i, j)
     191                 pic = tolower(pic)
     192                 print title "#" SRC " " SRC " hoster " url "#http://atemio.dyndns.tv/mediathek/menu/" pic ".jpg#" pic ".jpg#" NAME "#111"
    188193              }
    189194              next
    190195            }
    191196
    192 /<\/ul>/ { in_hoster = 0
     197/<\/ul>/ { in_hosterlist = 0
    193198          next
    194199        }
    195200
    196 ' >/tmp/tithek/$PARSER.hoster.list
    197         echo "/tmp/tithek/$PARSER.hoster.list"
    198 }
    199 
    200 video()
     201' >/tmp/tithek/$PARSER.hosterlist.list
     202        echo "/tmp/tithek/$PARSER.hosterlist.list"
     203}
     204
     205hoster()
    201206{
    202207        $wgetbin $URL$PARAM -O - | awk -v PARAM=$PARAM -v PARAM2=$PARAM2 -v SRC=$SRC -v NAME=$NAME '
    203 BEGIN { in_hoster = 0
     208BEGIN { in_hosterlist = 0
    204209        url = ""
    205210        title = ""
    206211      }
    207212
    208 /<div id=\"video_actions\">/ { in_video = 1
     213/<div id=\"video_actions\">/ { in_hoster = 1
    209214                               next
    210215                             }
    211216
    212 /<a href=\"/ { if (in_video == 1) {
     217/<a href=\"/ { if (in_hoster == 1) {
    213218                  i = index($0, "<a href=\"") + 9
    214219                  j = index(substr($0, i), "\"") - 1
     
    226231             }
    227232
    228 /<\/div>/ { in_video = 0
     233/<\/div>/ { in_hoster = 0
    229234            next
    230235          }
    231236
    232 ' >/tmp/tithek/$PARSER.video.list
    233 #       echo "/tmp/tithek/$PARSER.video.list"
    234         cat     "/tmp/tithek/$PARSER.video.list"
     237' >/tmp/tithek/$PARSER.hoster.list
     238#       echo "/tmp/tithek/$PARSER.hoster.list"
     239        cat     "/tmp/tithek/$PARSER.hoster.list"
    235240}
    236241
     
    242247        staffel) $INPUT;;
    243248        episode) $INPUT;;
     249        hosterlist) $INPUT;;
    244250        hoster) $INPUT;;
    245         video) $INPUT;;
    246251esac
    247252
  • titan/plugins/tithek/tithek_global.h

    r36970 r36972  
    8080        else if(ostrstr(tmplink, "zerocast") != NULL)
    8181                streamurl = zerocast(url, 0);
    82         else if(ostrstr(tmplink, "beeg") != NULL)
    83                 streamurl = beeg(url);
    8482        else
    8583                textbox(_("Message"), _("The hoster is not yet supported !"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0);
     
    703701        tmpstr = string_newline(tmpstr);
    704702
    705 printf("tmpstr: %s\n", tmpstr);
    706         streamurl = hoster(tmpstr);
    707         if(streamurl == NULL)
     703        if(ostrstr(link, ".sh play") != NULL)
    708704                streamurl = ostrcat(tmpstr, NULL, 0, 0);
    709 printf("streamurl: %s\n", streamurl);   
     705        else if(ostrstr(link, ".sh hoster") != NULL)
     706                streamurl = hoster(tmpstr);
    710707
    711708        free(tmpstr), tmpstr = NULL;
     
    714711}
    715712
    716 
    717 //int localparser_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title)
    718713int localparser_search(struct skin* grid, struct skin* listbox, struct skin* countlabel, struct skin* load, char* link, char* title, char* searchstr, int flag)
    719714{
    720 printf("localparser_search: %s\n", link);
    721 
    722715        char* tmpstr = NULL, *tmpstr1 = NULL, *line = NULL, *menu = NULL, *search = NULL;
    723716        int ret = 1, count = 0, i = 0;
Note: See TracChangeset for help on using the changeset viewer.