mirror of
https://github.com/artegoser/piped-api.git
synced 2024-11-06 04:23:58 +03:00
141 lines
2.5 KiB
TypeScript
141 lines
2.5 KiB
TypeScript
|
export interface Streams {
|
||
|
audioStreams: AudioStream[];
|
||
|
dash: string | null;
|
||
|
description: string;
|
||
|
dislikes: number;
|
||
|
duration: number;
|
||
|
hls: string | null;
|
||
|
lbryId: string;
|
||
|
likes: number;
|
||
|
livestream: boolean;
|
||
|
proxyUrl: string;
|
||
|
relatedStreams: Video[];
|
||
|
subtitles: Subtitle[];
|
||
|
thumbnailUrl: string;
|
||
|
title: string;
|
||
|
uploadedDate: string;
|
||
|
uploader: string;
|
||
|
uploaderUrl: string;
|
||
|
uploaderVerified: boolean;
|
||
|
videoStreams: VideoStream[];
|
||
|
views: number;
|
||
|
}
|
||
|
|
||
|
export interface AudioStream {
|
||
|
bitrate: number;
|
||
|
codec: string;
|
||
|
format: string;
|
||
|
indexEnd: number;
|
||
|
indexStart: number;
|
||
|
initStart: number;
|
||
|
initEnd: number;
|
||
|
mimeType: string;
|
||
|
quality: string;
|
||
|
url: string;
|
||
|
videoOnly: boolean;
|
||
|
}
|
||
|
|
||
|
export interface Subtitle {
|
||
|
autoGenerated: boolean;
|
||
|
code: string;
|
||
|
mimeType: string;
|
||
|
name: string;
|
||
|
url: string;
|
||
|
}
|
||
|
|
||
|
export interface VideoStream {
|
||
|
bitrate: number;
|
||
|
codec: string;
|
||
|
format: string;
|
||
|
fps: number;
|
||
|
height: number;
|
||
|
indexEnd: number;
|
||
|
indexStart: number;
|
||
|
initStart: number;
|
||
|
initEnd: number;
|
||
|
mimeType: string;
|
||
|
quality: string;
|
||
|
url: string;
|
||
|
videoOnly: boolean;
|
||
|
width: number;
|
||
|
}
|
||
|
|
||
|
export interface Comments {
|
||
|
comments: Comment[];
|
||
|
disabled: boolean;
|
||
|
nextpage: string;
|
||
|
}
|
||
|
|
||
|
export interface Comment {
|
||
|
author: string;
|
||
|
commentId: string;
|
||
|
commentText: string;
|
||
|
commentedTime: string;
|
||
|
commentorUrl: string;
|
||
|
hearted: boolean;
|
||
|
likeCount: number;
|
||
|
pinned: boolean;
|
||
|
thumbnail: string;
|
||
|
verified: boolean;
|
||
|
}
|
||
|
|
||
|
export interface Video {
|
||
|
duration: number;
|
||
|
thumbnail: string;
|
||
|
title: string;
|
||
|
uploadedDate: string;
|
||
|
uploaderAvatar: string;
|
||
|
uploaderUrl: string;
|
||
|
uploaderVerified: boolean;
|
||
|
url: string;
|
||
|
views: number;
|
||
|
}
|
||
|
|
||
|
export interface Channel {
|
||
|
avatarUrl: string;
|
||
|
bannerUrl: string;
|
||
|
description: string;
|
||
|
id: string;
|
||
|
name: string;
|
||
|
nextpage: string;
|
||
|
relatedStreams: Video[];
|
||
|
subscriberCount: number;
|
||
|
verified: boolean;
|
||
|
}
|
||
|
|
||
|
export interface NextPageChannel {
|
||
|
nextpage: string;
|
||
|
relatedStreams: Video[];
|
||
|
}
|
||
|
|
||
|
export interface Playlist {
|
||
|
bannerUrl: string;
|
||
|
name: string;
|
||
|
nextpage: string;
|
||
|
relatedStreams: Video[];
|
||
|
thumbnailUrl: string;
|
||
|
uploader: string;
|
||
|
uploaderAvatar: string;
|
||
|
uploaderUrl: string;
|
||
|
videos: number;
|
||
|
}
|
||
|
|
||
|
export interface NextPagePlaylist {
|
||
|
nextpage: string;
|
||
|
relatedStreams: Video[];
|
||
|
}
|
||
|
|
||
|
export interface Sponsors {
|
||
|
hash: string;
|
||
|
segments: Segments[];
|
||
|
videoId: string;
|
||
|
}
|
||
|
|
||
|
export interface Segments {
|
||
|
UUID: string;
|
||
|
actionType: string;
|
||
|
category: string;
|
||
|
segment: string;
|
||
|
videoDuration: number;
|
||
|
}
|