mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat(zhihu activities): add 'live' type (#143)
This commit is contained in:
@@ -63,12 +63,17 @@ module.exports = async (ctx) => {
|
||||
case 'column':
|
||||
title = detail.title;
|
||||
description = `<p>${detail.intro}</p><p><img referrerpolicy="no-referrer" src="${detail.image_url}"/></p>`;
|
||||
url = `${detail.url}`;
|
||||
url = detail.url;
|
||||
break;
|
||||
case 'topic':
|
||||
title = detail.name;
|
||||
description = `<p>${detail.introduction}</p><p>话题关注者人数:${detail.followers_count}</p>`;
|
||||
url = `${detail.url}`;
|
||||
url = detail.url;
|
||||
break;
|
||||
case 'live':
|
||||
title = detail.subject;
|
||||
description = detail.description.replace(/\n|\r/g, '<br>');
|
||||
url = `https://www.zhihu.com/lives/${detail.id}`;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user