Files
RSSHub/lib/routes/kemono/const.ts
T
AiraNadihandAiraNadih ed47f43284 fix(route/kemono): improve JSON field parsing with nested string handling (#19190)
* fix(route/kemono): improve JSON field parsing with nested string handling

* feat(route/kemono): add announcements and fancards support (close #16269)

* refactor(route/kemono): restructure codebase with constants extraction and type definitions

* Update lib/routes/kemono/index.ts

---------

Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
2025-05-28 02:26:32 +08:00

10 lines
260 B
TypeScript

const KEMONO_ROOT_URL = 'https://kemono.su';
const KEMONO_API_URL = `${KEMONO_ROOT_URL}/api/v1`;
const MIME_TYPE_MAP = {
m4a: 'audio/mp4',
mp3: 'audio/mpeg',
mp4: 'video/mp4',
} as const;
export { KEMONO_API_URL, KEMONO_ROOT_URL, MIME_TYPE_MAP };