Last change
on this file since 37145 was
37145,
checked in by obi, 8 years ago
|
add first local hoster
|
-
Property svn:executable set to
*
|
File size:
784 bytes
|
Rev | Line | |
---|
[37145] | 1 | ecostream($link)
|
---|
| 2 | {
|
---|
| 3 | debuglevel=`cat /mnt/config/titan.cfg | grep debuglevel | cut -d"=" -f2`
|
---|
| 4 | curlbin='curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies'
|
---|
| 5 | if [ "$debuglevel" == "99" ]; then curlbin="$curlbin -v"; fi
|
---|
| 6 | hosterurl=http://www.ecostream.tv
|
---|
| 7 |
|
---|
| 8 | data="tpm=`$curlbin $link | grep footerhash | cut -d"'" -f2``$curlbin $link | grep superslots | cut -d"'" -f2`&id=`$curlbin $link | grep data-id | cut -d'"' -f4`"
|
---|
| 9 | streampage=`$curlbin $hosterurl/js/ecoss.js | grep "$.post('" | grep videos | cut -d"'" -f2`
|
---|
| 10 | streamurl=$hosterurl`$curlbin -H "X-Requested-With: XMLHttpRequest" -X POST --data "$data" --referer $src $hosterurl/$streampage | cut -d'"' -f6`
|
---|
| 11 | if [ "$streamurl" != "$hosterurl" ];then
|
---|
| 12 | echo $streamurl
|
---|
| 13 | else
|
---|
| 14 | echo NULL
|
---|
| 15 | fi
|
---|
| 16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.