diff --git a/lib.php b/lib.php index 009440b..98280cb 100644 --- a/lib.php +++ b/lib.php @@ -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'), @@ -506,4 +506,4 @@ function Root_part(){ $domain=$_SERVER['SERVER_NAME']; return "$http"."$domain"."$part"; } -?> \ No newline at end of file +?>