This commit is contained in:
17
MyPlayer/api/iqiyi.php
Normal file
17
MyPlayer/api/iqiyi.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user