feat: BTBYR update (#4941)

This commit is contained in:
prnake 2020-06-08 16:26:15 +08:00 committed by GitHub
parent bde713fd24
commit 259f289af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -20,13 +20,19 @@ module.exports = async (ctx) => {
.map((i, e) => ({
title: $(e).find('tr > td.rowfollow').eq(0).text(),
pubDate: new Date($(e).find('tr > td.rowfollow > span').attr('title')).toUTCString(),
description: $(e).find('tr > td.rowfollow').eq(2).html(),
link: url + `log.php?action=funbox#` + new Date($(e).find('tr > td.rowfollow > span').attr('title')).getTime() / 1000,
description: $(e)
.find('tr > td.rowfollow')
.eq(2)
.html()
.replace(/onclick=.*findPosition\(this\)\[1\]-58\);"/g, '')
.replace(/.thumb.jpg/g, ''),
link: url + `log.php?action=funbox`,
guid: new Date($(e).find('tr > td.rowfollow > span').attr('title')).getTime() / 1000,
}))
.get();
ctx.state.data = {
title: 'BYRBT - 趣味盒',
title: 'BTBYR - 趣味盒',
link: url + `log.php?action=funbox`,
item: list,
};