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

18 lines
518 B
PHP

<?php
/*
* 爱奇艺
*/
class iqiyi extends API{
protected function LoadRemote( ) {
if( TryGetParam( 'id', $id ) ) {
$html = GetUrlContent( "http://www.iqiyi.com/v_{$id}.html" );
$count = preg_match_all( '/\"vid\":\"([0-9a-z]+)\"/s', $html, $matchs );
if( $count ){
$vid = $matchs[1][0];
$this->data = array( );
$this->data['url'] = "http://player.video.qiyi.com/{$vid}/0/0/v_{$id}.swf";
}
}
}
}