Changeset 41301


Ignore:
Timestamp:
11/26/17 19:37:58 (6 years ago)
Author:
obi
Message:

tithek menu add sport7.tech.jpg dummy

Location:
titan/mediathek
Files:
1 added
1 edited

Legend:

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

    r41296 r41301  
    810810
    811811                        PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    812                         if [ "$TITLE" == "alieztv" ];then
    813                                 PIC="http://atemio.dyndns.tv/mediathek/menu/alieztv.jpg"
    814                         fi
    815                         if [ "$TITLE" == "youtube" ];then
    816                                 PIC="http://atemio.dyndns.tv/mediathek/menu/youtube.jpg"
    817                         fi
     812
     813                        if [ $(echo "$TITLE" | grep ^"WEB STREAM" | wc-l) -eq 1 ];then
     814                                HOST=$(echo "$TITLE" | cut -d"(" -f1)
     815                        else
     816                                HOST=`echo "$TITLE" | sed -nr 's/.*[http|https]:\/\/([^\/]+)\/.*/\1/p'`
     817                        fi
     818                        PIC="http://atemio.dyndns.tv/mediathek/menu/"$HOST".jpg"
    818819
    819820                        if [ ! -z "$TITLE" ] && [ ! -z "$EXTRA" ];then
Note: See TracChangeset for help on using the changeset viewer.