From 7fb80825e344728e5d633185e42754e5ee9f2e79 Mon Sep 17 00:00:00 2001 From: dythebs <37578699+dythebs@users.noreply.github.com> Date: Mon, 30 Apr 2018 22:10:36 +0800 Subject: [PATCH] Update lib.php get recommend by "GJ_CODE" --- lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>