Skip to content

Commit

Permalink
Update lib.php
Browse files Browse the repository at this point in the history
get recommend by "GJ_CODE"
  • Loading branch information
dythebs authored Apr 30, 2018
1 parent 91022b6 commit 7fb8082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function get_related_channel($id){

//采集抓取随机推荐内容
function random_recommend(){
$dat=get_data('https://www.youtube.com/?gl=TW&hl=zh-CN');
$dat=get_data('https://www.youtube.com/?gl='.constant("GJ_CODE").'&hl=zh-CN');
$rules = array(
't' => array('#feed .individual-feed .section-list li .item-section li .feed-item-container .feed-item-dismissable .shelf-title-table .shelf-title-row h2 .branded-page-module-title-text','text'),
'html' => array('#feed .individual-feed .section-list li .item-section li .feed-item-container .feed-item-dismissable .compact-shelf .yt-viewport .yt-uix-shelfslider-list','html'),
Expand Down Expand Up @@ -506,4 +506,4 @@ function Root_part(){
$domain=$_SERVER['SERVER_NAME'];
return "$http"."$domain"."$part";
}
?>
?>

0 comments on commit 7fb8082

Please sign in to comment.