diff --git a/lib/routes/natgeo/dailyphoto.ts b/lib/routes/natgeo/dailyphoto.ts index cca15714b..84a15d169 100644 --- a/lib/routes/natgeo/dailyphoto.ts +++ b/lib/routes/natgeo/dailyphoto.ts @@ -1,4 +1,4 @@ -import { Route } from '@/types'; +import { Route, ViewType } from '@/types'; import { getCurrentPath } from '@/utils/helpers'; const __dirname = getCurrentPath(import.meta.url); @@ -12,7 +12,8 @@ import { config } from '@/config'; export const route: Route = { path: '/dailyphoto', - categories: ['picture'], + categories: ['picture', 'popular'], + view: ViewType.Pictures, example: '/natgeo/dailyphoto', parameters: {}, features: { @@ -28,8 +29,8 @@ export const route: Route = { source: ['nationalgeographic.com/photo-of-the-day/*', 'nationalgeographic.com/'], }, ], - name: '每日一图', - maintainers: ['LogicJake', 'OrangeEd1t', 'TonyRL'], + name: 'Daily Photo', + maintainers: ['LogicJake', 'OrangeEd1t', 'TonyRL', 'pseudoyu'], handler, url: 'nationalgeographic.com/photo-of-the-day/*', }; diff --git a/lib/routes/natgeo/dailyselection.ts b/lib/routes/natgeo/dailyselection.ts index d7c0e89ff..58db3c6d0 100644 --- a/lib/routes/natgeo/dailyselection.ts +++ b/lib/routes/natgeo/dailyselection.ts @@ -1,12 +1,27 @@ -import { Route } from '@/types'; +import { Route, ViewType } from '@/types'; import got from '@/utils/got'; import timezone from '@/utils/timezone'; import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/dailyselection', - name: 'Unknown', - maintainers: ['OrangeEd1t'], + name: 'Daily Selection', + categories: ['picture'], + view: ViewType.Pictures, + example: '/natgeo/dailyselection', + parameters: {}, + features: { + requireConfig: false, + requirePuppeteer: false, + antiCrawler: false, + supportBT: false, + }, + radar: [ + { + source: ['nationalgeographic.com/'], + }, + ], + maintainers: ['OrangeEd1t', 'pseudoyu'], handler, };