refactor: format
This commit is contained in:
parent
42f957c634
commit
97d9115338
|
|
@ -239,6 +239,12 @@ pageClass: routes
|
|||
|
||||
</Route>
|
||||
|
||||
## 低端影视
|
||||
|
||||
### 影视剧集
|
||||
|
||||
<Route author="saintwinkle" example="/ddrk/silicon-valley/6" path="/ddrk/:name/:season?" :paramsDesc="['影视名称,可以在 URL 中找到','季数,可以在 URL 中找到,剧集没有分季时不用填写,或是默认输出第一季的内容,']" />
|
||||
|
||||
## 电影首发站
|
||||
|
||||
### 电影
|
||||
|
|
@ -420,9 +426,3 @@ pageClass: routes
|
|||
### 影视
|
||||
|
||||
<Route author="DIYgod" example="/zimuzu/resource/37031" path="/zimuzu/resource/:id?" :paramsDesc="['影视 id,对应影视的 URL 中找到,为空时输出最近更新']" supportBT="1"/>
|
||||
|
||||
## 低端影视
|
||||
|
||||
### 影视剧集
|
||||
|
||||
<Route author="saintwinkle" example="/ddrk/silicon-valley/6" path="/ddrk/:name/:season?" :paramsDesc="['影视名称,可以在 URL 中找到','季数,可以在 URL 中找到,剧集没有分季时不用填写,或是默认输出第一季的内容,']" />
|
||||
|
|
|
|||
|
|
@ -26,44 +26,42 @@ module.exports = async (ctx) => {
|
|||
ctx.state.data = {
|
||||
title: 'Hanime',
|
||||
link: 'https://hanime.tv/',
|
||||
item: await Promise.all(
|
||||
list.map((item) => {
|
||||
const videoUrl = 'https://hanime.tv/hentai-videos/' + item.slug;
|
||||
// 视频预览图,可通过视频页面的预览图片获取
|
||||
const videoImage = 'https://i1.wp.com/cdn.tw-hoa-licensing.com/images/storyboards/' + item.slug + '-720p-v1x.jpg';
|
||||
const videoCover = item.cover_url;
|
||||
const videoDescription = item.description;
|
||||
const videoTags = item.tags;
|
||||
const videoBrand = item.brand;
|
||||
const videoEnglishName = item.name;
|
||||
const videoName = item.titles;
|
||||
const videoJapanseName = videoName.slice(-1);
|
||||
item: list.map((item) => {
|
||||
const videoUrl = 'https://hanime.tv/hentai-videos/' + item.slug;
|
||||
// 视频预览图,可通过视频页面的预览图片获取
|
||||
const videoImage = 'https://i1.wp.com/cdn.tw-hoa-licensing.com/images/storyboards/' + item.slug + '-720p-v1x.jpg';
|
||||
const videoCover = item.cover_url;
|
||||
const videoDescription = item.description;
|
||||
const videoTags = item.tags;
|
||||
const videoBrand = item.brand;
|
||||
const videoEnglishName = item.name;
|
||||
const videoName = item.titles;
|
||||
const videoJapanseName = videoName.slice(-1);
|
||||
|
||||
return {
|
||||
title: videoEnglishName,
|
||||
description:
|
||||
'Name: '.bold() +
|
||||
videoJapanseName +
|
||||
'<br>' +
|
||||
'Brand: '.bold() +
|
||||
videoBrand +
|
||||
'<br>' +
|
||||
'Tags: '.bold() +
|
||||
videoTags +
|
||||
'<br>' +
|
||||
'Description: '.bold() +
|
||||
videoDescription +
|
||||
'<br>' +
|
||||
'<img src="' +
|
||||
videoCover +
|
||||
'">' +
|
||||
'<br>' +
|
||||
'<img src="' +
|
||||
videoImage +
|
||||
'">',
|
||||
link: videoUrl,
|
||||
};
|
||||
})
|
||||
),
|
||||
return {
|
||||
title: videoEnglishName,
|
||||
description:
|
||||
'Name: '.bold() +
|
||||
videoJapanseName +
|
||||
'<br>' +
|
||||
'Brand: '.bold() +
|
||||
videoBrand +
|
||||
'<br>' +
|
||||
'Tags: '.bold() +
|
||||
videoTags +
|
||||
'<br>' +
|
||||
'Description: '.bold() +
|
||||
videoDescription +
|
||||
'<br>' +
|
||||
'<img src="' +
|
||||
videoCover +
|
||||
'">' +
|
||||
'<br>' +
|
||||
'<img src="' +
|
||||
videoImage +
|
||||
'">',
|
||||
link: videoUrl,
|
||||
};
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue