Changeset 44994


Ignore:
Timestamp:
12/11/20 01:00:10 (19 months ago)
Author:
obi
Message:

tithek sh4 add work for thevideo/voe using http

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/hoster.sh

    r44932 r44994  
    212212        videocode=`cat $TMP/cache.$FILENAME.1`
    213213
    214         STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
    215         echo "https://thevideos.ga/$videocode" > $STREAMLIST
    216         #start dummy page not found then works playback without input/outout error
    217         curl "https://thevideos.ga/$videocode" > /dev/null 2>&1
    218         echo $STREAMLIST
     214        if [ "$ARCH" == "sh4" ];then
     215                STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     216                echo "http://thevideos.ga/$videocode" > $STREAMLIST
     217                #start dummy page not found then works playback without input/outout error
     218                curl "http://thevideos.ga/$videocode" > /dev/null 2>&1
     219                echo $STREAMLIST
     220        else
     221                STREAMLIST="$TMP/$TYPE.$hoster.$FILENAME.streamlist"
     222                echo "https://thevideos.ga/$videocode" > $STREAMLIST
     223                #start dummy page not found then works playback without input/outout error
     224                curl "https://thevideos.ga/$videocode" > /dev/null 2>&1
     225                echo $STREAMLIST
     226        fi
    219227#######
    220228exit
     
    394402
    395403voe()
    396 {
    397         URL=`$curlbin "$INPUT" | sed -nr "s/.*src: '([^']+)'.*/\1/p"`
     404{
     405        if [ "$ARCH" == "sh4" ];then
     406                URL=`$curlbin "$INPUT" | sed -nr "s/.*src: '([^']+)'.*/\1/p" | sed 's/https:/http:/g'`
     407        else
     408                URL=`$curlbin "$INPUT" | sed -nr "s/.*src: '([^']+)'.*/\1/p"`
     409        fi
    398410        REFERER=`echo "$INPUT" | sed -e 's/=/3D/g' -e 's/&/26/g'`
    399411        echo "$URL|Referer=$REFERER&User-Agent=$USERAGENT"
Note: See TracChangeset for help on using the changeset viewer.