Changeset 39801
- Timestamp:
- 01/25/17 03:15:23 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localparser_secret/nbaondemand.sh
r39800 r39801 146 146 play() 147 147 { 148 #echo 1111111 148 149 if [ ! -e "$TMP/$PARSER.$INPUT.$FROM.$FILENAME.list" ]; then 149 150 piccount=0 150 151 151 152 $curlbin $URL/$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.1 153 #echo 222222 152 154 153 155 cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.1 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<iframe src=!\nfound=!g' | sed 's!<br> </td>!\n<br> </td>!g' | grep '^found=' | grep 'video/embed' | cut -d"'" -f2 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 154 156 if [ `cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 | wc -l` -gt 0 ];then 157 #echo 333333 158 155 159 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2` 160 URLTMP=`echo $URLTMP | sed 's/true http/http/'` 161 156 162 $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 157 163 # "flashVars": {"autoplay":0,"movieSrc":"mail/arsen.bulyaev/_myvideo/738","metadataUrl":"//my.mail.ru/+/video/meta/4219658639352267490","showPauseRoll":"0","enable_search":"2","swfVersion":"29","static_version":"75","flash_enabled":"1"}, … … 166 172 #eplayer3 "http://cdn41.my.mail.ru/v/60128796.mp4?sign=43ff6ef971dd635bbff0a57a061a3548cfaceef8&slave[]=s%3Ahttp%3A%2F%2F127.0.0.1%3A5010%2F60128796-v.mp4&p=f&expire_at=1477882800&touch=1477731621®=202®ion=202" 167 173 else 174 #echo 4444444 175 168 176 # <iframe allowFullScreen allowFullScreen frameborder=0 marginheight=0 marginwidth=0 scrolling='no'src="http://emb.aliez.me/player/video.php?id=47383&s=t67axfnq&w=590&h=384" width="590" height="384">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe> 169 177 # <iframe allowFullScreen src="//livetv141.net/export/vk.reframe.php?ur4=http://vk.com/video_ext.php?oid=-55574239&id=456242297&hash=f78096b994400693&hd=1" width="600" height="338" frameborder="0" allowfullscreen></iframe> … … 176 184 fi 177 185 178 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2` 186 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.2 | sed 's/true http/http/'` 187 #echo 55555511a $URLTMP 188 URLTMP=`echo $URLTMP | sed 's/true http/http/'` 189 179 190 if [ `echo $URLTMP | grep ^"//" | wc -l` -eq 1 ];then 180 191 URLTMP=http:$URLTMP … … 183 194 184 195 if [ `echo $URLTMP | grep "export/vk.reframe.php" | wc -l` -eq 1 ];then 196 #echo 55555522 $URLTMP 197 198 #echo 555555 199 185 200 referer=$URLTMP 186 201 $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 … … 188 203 cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<iframe src=!\nfound=!g' | grep '^found=' | cut -d'"' -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4 189 204 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4` 205 URLTMP=`echo $URLTMP | sed 's/true http/http/'` 206 190 207 $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.5 191 208 cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.5 | grep vk.com | sed 's!href=!\nfound=!' | grep ^found | cut -d '"' -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6 192 209 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6` 210 URLTMP=`echo $URLTMP | sed 's/true http/http/'` 193 211 if [ `echo $URLTMP | grep ^"//" | wc -l` -eq 1 ];then 194 212 URLTMP=https:$URLTMP … … 217 235 cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!<iframe src=!\nfound=!g' | grep '^found=' | cut -d'"' -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.11 218 236 URLTMP=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.11` 237 URLTMP=`echo $URLTMP | sed 's/true http/http/'` 219 238 220 239 $curlbin $URLTMP --referer "$referer" -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.12 … … 226 245 fi 227 246 elif [ `echo $URLTMP | grep "/embed/" | wc -l` -eq 1 ];then 247 #echo 666666 248 228 249 $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 229 250 # "flashVars": {"autoplay":0,"movieSrc":"mail/arsen.bulyaev/_myvideo/738","metadataUrl":"//my.mail.ru/+/video/meta/4219658639352267490","showPauseRoll":"0","enable_search":"2","swfVersion":"29","static_version":"75","flash_enabled":"1"}, … … 239 260 URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.6` 240 261 else 241 $curlbin `echo $URLTMP | sed 's/true http/http/'` --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 262 #echo 7777777 $URLTMP 263 URLTMP=`echo $URLTMP | sed 's/true http/http/'` 264 echo $curlbin $URLTMP --referer $URL$PAGE -o $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 242 265 cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.3 | tr '\n' ' ' | tr '\n' ' ' | tr '\t' ' ' | sed 's/ \+/ /g' | sed 's!file:!\nfound=!g' | grep '^found=' | cut -d"'" -f2 | head -n1 >$TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4 243 266 URL=`cat $TMP/cache.$PARSER.$INPUT.$FROM.$FILENAME.4`
Note: See TracChangeset
for help on using the changeset viewer.