Skip to content

Commit

Permalink
fix(route): natgeo daily selection and photo
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Sep 24, 2024
1 parent 733a88b commit 40fe8a3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
9 changes: 5 additions & 4 deletions lib/routes/natgeo/dailyphoto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Route } from '@/types';
import { Route, ViewType } from '@/types';
import { getCurrentPath } from '@/utils/helpers';
const __dirname = getCurrentPath(import.meta.url);

Expand All @@ -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: {
Expand All @@ -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/*',
};
Expand Down
21 changes: 18 additions & 3 deletions lib/routes/natgeo/dailyselection.ts
Original file line number Diff line number Diff line change
@@ -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,
};

Expand Down

0 comments on commit 40fe8a3

Please sign in to comment.