feat(radar): instagram

This commit is contained in:
DIYgod 2019-08-18 21:52:43 +08:00
parent 1a83a15c42
commit 561e00a521
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 20 additions and 2 deletions

View File

@ -376,13 +376,13 @@
'.': [
{
title: '動畫',
docs: 'https://docs.rsshub.app/anime.html#%E5%8B%95%E7%95%AB',
docs: 'https://docs.rsshub.app/anime.html#anime1',
source: '/category/:time/:name',
target: '/anime1/anime/:time/:name',
},
{
title: '搜尋',
docs: 'https://docs.rsshub.app/anime.html#%25E6%2590%259C%25E5%25B0%258B',
docs: 'https://docs.rsshub.app/anime.html#anime1',
source: '/',
script: "({keyword: new URLSearchParams(location.search).get('s')})",
target: '/anime1/search/:keyword',
@ -390,4 +390,22 @@
},
],
},
'instagram.com': {
_name: 'Instagram',
www: [
{
title: '用户',
docs: 'https://docs.rsshub.app/social-media.html#instagram',
source: '/:id',
target: '/instagram/user/:id',
verification: (params) => params.id !== 'explore' && params.id !== 'developer',
},
{
title: '标签',
docs: 'https://docs.rsshub.app/social-media.html#instagram',
source: '/explore/tags/:tag',
target: '/instagram/tag/:tag',
},
],
},
});