Changeset 38960 for titan


Ignore:
Timestamp:
09/23/16 18:41:30 (7 years ago)
Author:
obi
Message:

[tithek] add first python hoster

Location:
titan/mediathek/localhoster
Files:
2 added
1 edited

Legend:

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

    r37513 r38960  
    1111wgetbin="wget -q -T2"
    1212TMP=/tmp/localcache
     13CMD=/tmp/localhoster
    1314
    1415hoster=`echo $INPUT | tr 'A-Z' 'a-z' | sed 's!http://!!' | sed 's!https://!!' | cut -d'/' -f1 | sed 's/www.//' | tr '.' '\n' | head -n1`
     
    5152}
    5253
     54vidup()
     55{
     56        python $CMD/vidup.py $INPUT
     57}
     58
     59nosvideo()
     60{
     61        python $CMD/nosvideo.py $INPUT
     62}
     63
     64
    5365if [ "$TYPE" == "get" ];then
    5466        case $hoster in
    5567                ecostream) ecostream $INPUT;;
    5668                giga) giga $INPUT;;
     69                vidup) vidup $INPUT;;
     70                nosvideo) nosvideo $INPUT;;
    5771        esac
    5872fi
Note: See TracChangeset for help on using the changeset viewer.