From d4ba50ee492c645720f256e0f9c535df75c48288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=9A=E9=A3=8E=E6=8B=82=E6=9F=B3=E9=A2=9C?= <434857005@qq.com> Date: Wed, 10 Jan 2024 20:42:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=AE=E8=A7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/version.txt | 2 +- txt/hipy/cntv央视.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/js/version.txt b/js/version.txt index 857a649..434ff45 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.49beta19 \ No newline at end of file +3.9.49beta20 \ No newline at end of file diff --git a/txt/hipy/cntv央视.py b/txt/hipy/cntv央视.py index 2962172..2949815 100644 --- a/txt/hipy/cntv央视.py +++ b/txt/hipy/cntv央视.py @@ -338,7 +338,7 @@ class Spider(BaseSpider): # 元类 默认的元类 type elif tid == '4K专区': cid = 'CHAL1558416868484111' url = 'https://api.cntv.cn/NewVideo/getLastVideoList4K?serviceId=cctv4k&cid={0}&p={1}&n={2}&t=json&cb=ko'.format( - cid,pg,pagecount + cid, pg, pagecount ) else: url = 'https://tv.cctv.com/epg/index.shtml' @@ -390,7 +390,8 @@ class Spider(BaseSpider): # 元类 默认的元类 type # htmlTxt = self.webReadFile(urlStr=Url, header=self.header) htmlTxt = self.fetch(Url).text elif tid == "4K专区": - Url = 'https://api.cntv.cn/NewVideo/getVideoListByAlbumIdNew?id={0}&serviceId=cctv4k&p=1&n=100&mode=0&pub=1'.format(id) + Url = 'https://api.cntv.cn/NewVideo/getVideoListByAlbumIdNew?id={0}&serviceId=cctv4k&p=1&n=100&mode=0&pub=1'.format( + id) print(Url) else: Url = 'https://api.cntv.cn/NewVideo/getVideoListByAlbumIdNew?id={0}&serviceId=tvcctv&p=1&n=100&mode=0&pub=1'.format( @@ -427,7 +428,7 @@ class Spider(BaseSpider): # 元类 默认的元类 type return {} vod = { "vod_id": array[0], - "vod_name": title, + "vod_name": title.replace(' ', ''), "vod_pic": logo, "type_name": tid, "vod_year": vod_year,