Changeset 41304


Ignore:
Timestamp:
11/27/17 01:11:06 (6 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r41301 r41304  
    811811                        PIC="http://atemio.dyndns.tv/mediathek/menu/default.jpg"
    812812
    813                         if [ $(echo "$TITLE" | grep ^"WEB STREAM" | wc-l) -eq 1 ];then
    814                                 HOST=$(echo "$TITLE" | cut -d"(" -f1)
     813                        if [ $(echo "$TITLE" | grep ^"WEB STREAM" | wc -l) -eq 1 ];then
     814                                HOST=`echo "$TITLE" | sed -nr 's/.*[http|https]:\/\/([^\/]+)\/.*/\1/p'`
    815815                        else
    816                                 HOST=`echo "$TITLE" | sed -nr 's/.*[http|https]:\/\/([^\/]+)\/.*/\1/p'`
     816                                HOST=$(echo "$TITLE" | cut -d"(" -f1 | sed -e 's/.\{1\}$//')
    817817                        fi
    818818                        PIC="http://atemio.dyndns.tv/mediathek/menu/"$HOST".jpg"
Note: See TracChangeset for help on using the changeset viewer.