Files
plugins/MyPlayer/api/sina.php
chorblack e75f275ef4
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled
Initial commit
2026-03-07 11:19:25 +08:00

19 lines
622 B
PHP

<?php
/*
* 新浪视频
*/
class sina extends API{
protected function LoadRemote( ) {
if( TryGetParam( 'url', $url ) ) {
$url = $url;
$html = GetUrlContent( "http://dp.sina.cn/dpool/video/pad/play.php?url={$url}" );
$count = preg_match_all( '/$SCOPE\[\'vid\'\]\s=\s"(\d+)";/s', $html, $matchs );
if( $count ){
$this->data = array( );
$this->data['url'] = $matchs[1][0];
$this->data['url'] = 'http://you.video.sina.com.cn/api/sinawebApi/outplayrefer.php/vid={$matchs[1][0]}/s.swf'
}
}
}
}