Files
RSSHub/lib/routes/ganjingworld/interfaces/api.ts
T
dd5e1ffcf8 feat(route): Add GanjingWorld (#20086)
* Created route for channel videos

* chore: updated route name

* feat: add short video route

* Added Article Route

* Added Posts Route

* chore: change file name

* chore: reorder folder structure

* Update lib/routes/ganjingworld/namespace.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix(route/ganjingworld): fix target url; fix repeated name, fix redundant parsing, fix video poster attribute, fix naming convention

* fix(route/ganjingworld) fix examples

* fix(route/ganjingworld) fix optional empty string

* chore(route/ganjingworld): fix example link

* style: auto format

* New files from Fly.io Launch

* Revert "New files from Fly.io Launch"

This reverts commit 71d9f42f5f0073f35bc34ac4e9417e4a4a1d94fc.

* Fix: resolved requested changes

* fix: implement suggested changes

* fix: fix variable names

* fix: update error messages and improve data handling in Ganjing World routes

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fly.io <noreply@fly.io>
Co-authored-by: fly-io[bot] <52462049+fly-io[bot]@users.noreply.github.com>
2026-01-20 01:14:22 +08:00

35 lines
600 B
TypeScript

// interfaces/api.ts
export interface ApiResponse {
data: {
list: ListItem[];
};
}
export interface ListItem {
title: string;
description?: string;
id: string;
time_scheduled: number;
channel: Channel;
poster_url: string;
image_auto_url?: string;
video_url: string;
text?: string;
media: Media[];
watch_count?: number;
}
export interface Channel {
icon: string;
id: string;
name: string;
}
export interface Media {
type: string;
id: string;
url: string;
width: number;
height: number;
ratio: number;
}