更新央视
This commit is contained in:
parent
cd8cb1aaf1
commit
d4ba50ee49
@ -1 +1 @@
|
|||||||
3.9.49beta19
|
3.9.49beta20
|
||||||
@ -338,7 +338,7 @@ class Spider(BaseSpider): # 元类 默认的元类 type
|
|||||||
elif tid == '4K专区':
|
elif tid == '4K专区':
|
||||||
cid = 'CHAL1558416868484111'
|
cid = 'CHAL1558416868484111'
|
||||||
url = 'https://api.cntv.cn/NewVideo/getLastVideoList4K?serviceId=cctv4k&cid={0}&p={1}&n={2}&t=json&cb=ko'.format(
|
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:
|
else:
|
||||||
url = 'https://tv.cctv.com/epg/index.shtml'
|
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.webReadFile(urlStr=Url, header=self.header)
|
||||||
htmlTxt = self.fetch(Url).text
|
htmlTxt = self.fetch(Url).text
|
||||||
elif tid == "4K专区":
|
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)
|
print(Url)
|
||||||
else:
|
else:
|
||||||
Url = 'https://api.cntv.cn/NewVideo/getVideoListByAlbumIdNew?id={0}&serviceId=tvcctv&p=1&n=100&mode=0&pub=1'.format(
|
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 {}
|
return {}
|
||||||
vod = {
|
vod = {
|
||||||
"vod_id": array[0],
|
"vod_id": array[0],
|
||||||
"vod_name": title,
|
"vod_name": title.replace(' ', ''),
|
||||||
"vod_pic": logo,
|
"vod_pic": logo,
|
||||||
"type_name": tid,
|
"type_name": tid,
|
||||||
"vod_year": vod_year,
|
"vod_year": vod_year,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user