Changeset 40860 for titan/mediathek


Ignore:
Timestamp:
Aug 28, 2017, 1:27:03 AM (2 years ago)
Author:
obi
Message:

fix movie4

File:
1 edited

Legend:

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

    r40859 r40860  
    208208#       $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.1 -A 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/4.4.7.3000 Chrome/30.0.1599.101 Safari/537.36'
    209209        /tmp/localhoster/hoster.sh get $URL/$PAGE > $TMP/cache.$PARSER.$INPUT.1
    210 #       <iframe src="//www.rapidvideo.com/e/FIW59O2DED" width="730" height="460" frameborder="0" scrolling="no"></iframe><BR> <div id="underplayer">
    211         STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<iframe src="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2 | tr ' ' '\n' | head -n1`
     210
     211        STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<a target="_blank" href="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2`
     212
     213        if [ `echo $STREAMURL | grep ^http | wc -l` -eq 0 ]; then
     214#               <iframe src="//www.rapidvideo.com/e/FIW59O2DED" width="730" height="460" frameborder="0" scrolling="no"></iframe><BR> <div id="underplayer">
     215                STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<iframe src="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2 | tr ' ' '\n' | head -n1`
     216        fi
    212217
    213218#       STREAMURL=`cat $TMP/cache.$PARSER.$INPUT.1 | sed 's!<a target="_blank" href="!\nstreamurl="!' | grep ^streamurl= | cut -d'"' -f2`
     
    215220        echo $STREAMURL
    216221}
     222
    217223
    218224case $INPUT in
Note: See TracChangeset for help on using the changeset viewer.