Changeset 40287
- Timestamp:
- 04/09/17 16:00:25 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localparser_secret/beeg.sh
r40264 r40287 10 10 PARSER=`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` 11 11 NAME=`echo -n ${PARSER:0:1} | tr '[a-z]' '[A-Z]'`${PARSER:1} 12 13 FILENAME="`echo $SRC | tr '/' '\n' | tail -n1 | sed 's/.sh//'` $INPUT $PARAM" 14 FILENAME="`echo $FILENAME | sed -e 's/\&\+/./g' -e 's#\/\+#.#g' -e 's/\?\+/./g' -e 's/;\+/./g' -e 's/=\+/./g' -e 's/ \+/./g' -e 's/\.\+/./g'`" 15 PICNAME=`echo $FILENAME` 16 12 17 13 18 rm -rf $TMP > /dev/null 2>&1 … … 64 69 } 65 70 /^\}/ { 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 67 74 title = "" 68 75 id = "" … … 93 100 ' >/tmp/tithek/$PARSER.list 94 101 echo "/tmp/tithek/$PARSER.list" 102 } 103 104 hosterlist() 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" 95 133 } 96 134 … … 273 311 mainmenu) $INPUT;; 274 312 videos) $INPUT;; 313 hoster) $INPUT;; 314 hosterlist) $INPUT;; 275 315 play) $INPUT;; 276 316 tags) $INPUT;;
Note: See TracChangeset
for help on using the changeset viewer.