Changeset 40287


Ignore:
Timestamp:
04/09/17 16:00:25 (7 years ago)
Author:
obi
Message:

[tithek] change beeg to youtube_dl

File:
1 edited

Legend:

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

    r40264 r40287  
    1010PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'`
    1111NAME=`echo -n ${PARSER:0:1} | tr '[a-z]' '[A-Z]'`${PARSER:1}
     12
     13FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PARAM"
     14FILENAME="`echo $FILENAME | sed -e 's/\&\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g'`"
     15PICNAME=`echo $FILENAME`
     16
    1217
    1318rm -rf $TMP > /dev/null 2>&1
     
    6469      }
    6570/^\}/ { if (table == "videos") {
    66            print title "#" SRC " " SRC " play video/" id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#111"
     71#           print title "#" SRC " " SRC " play video/" id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#111"
     72           print title "#" SRC " " SRC " hosterlist " id "#https://img.beeg.com/236x177/" id ".jpg#" PARSER "_" id ".jpg#" NAME "#0"
     73
    6774           title = ""
    6875           id = ""
     
    93100' >/tmp/tithek/$PARSER.list
    94101        echo "/tmp/tithek/$PARSER.list"
     102}
     103
     104hosterlist()
     105{
     106        if [ ! -e "$TMP/$FILENAME.list" ]; then
     107                /tmp/localhoster/hoster.sh youtube_dl http://beeg.com/$PARAM > $TMP/cache.$FILENAME.1
     108                piccount=0
     109
     110                while read -u 3 ROUND; do
     111                        TITLE=`echo $ROUND | cut -d"/" -f6`
     112                        PIC="http://atemio.dyndns.tv/mediathek/menu/`echo $TITLE | tr '/' '.'`.jpg"
     113                        NEWPAGE="$ROUND"
     114
     115                        if [ -z "$PIC" ] || [ "$PIC" = ".jpg" ]; then
     116                                PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
     117                        fi
     118
     119                        if [ ! -z "$TITLE" ] && [ ! -z "$NEWPAGE" ];then
     120                                if [ ! -e $TMP/$FILENAME.list ];then
     121                                        touch $TMP/$FILENAME.list
     122                                fi
     123                                piccount=`expr $piccount + 1`
     124#                               LINE="$TITLE#$SRC $SRC play '$NEWPAGE'#$PIC#$FILENAME.$piccount.jpg#$NAME#111"
     125                                LINE="$TITLE#$NEWPAGE#$PIC#$TITLE.$piccount.jpg#$NAME#2"
     126                                echo "$LINE" >> $TMP/$FILENAME.list
     127                        fi
     128
     129                done 3<$TMP/cache.$FILENAME.1
     130                rm $TMP/cache.* > /dev/null 2>&1
     131        fi
     132        echo "$TMP/$FILENAME.list"
    95133}
    96134
     
    273311        mainmenu) $INPUT;;
    274312        videos) $INPUT;;
     313        hoster) $INPUT;;
     314        hosterlist) $INPUT;;
    275315        play) $INPUT;;
    276316        tags) $INPUT;;
Note: See TracChangeset for help on using the changeset viewer.