mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2025-01-15 05:10:15 +00:00
154 lines
3.2 KiB
TypeScript
154 lines
3.2 KiB
TypeScript
|
export interface Videos {
|
||
|
data?: Datum[];
|
||
|
config?: Config;
|
||
|
paginate?: boolean;
|
||
|
}
|
||
|
|
||
|
export interface Config {
|
||
|
archive?: Archive;
|
||
|
default_view?: DefaultView;
|
||
|
subscriptions?: Subscriptions;
|
||
|
downloads?: Downloads;
|
||
|
application?: Application;
|
||
|
scheduler?: Scheduler;
|
||
|
}
|
||
|
|
||
|
export interface Application {
|
||
|
app_root?: string;
|
||
|
cache_dir?: string;
|
||
|
videos?: string;
|
||
|
file_template?: string;
|
||
|
colors?: string;
|
||
|
enable_cast?: boolean;
|
||
|
REDIS_HOST?: string;
|
||
|
es_url?: string;
|
||
|
es_auth?: string[];
|
||
|
HOST_UID?: number;
|
||
|
HOST_GID?: number;
|
||
|
}
|
||
|
|
||
|
export interface Archive {
|
||
|
sort_by?: string;
|
||
|
sort_order?: string;
|
||
|
page_size?: number;
|
||
|
}
|
||
|
|
||
|
export interface DefaultView {
|
||
|
home?: string;
|
||
|
channel?: string;
|
||
|
downloads?: string;
|
||
|
playlist?: string;
|
||
|
}
|
||
|
|
||
|
export interface Downloads {
|
||
|
limit_count?: boolean;
|
||
|
limit_speed?: boolean;
|
||
|
sleep_interval?: number;
|
||
|
autodelete_days?: boolean;
|
||
|
format?: boolean;
|
||
|
add_metadata?: boolean;
|
||
|
add_thumbnail?: boolean;
|
||
|
subtitle?: boolean;
|
||
|
subtitle_source?: boolean;
|
||
|
subtitle_index?: boolean;
|
||
|
throttledratelimit?: boolean;
|
||
|
integrate_ryd?: boolean;
|
||
|
integrate_sponsorblock?: boolean;
|
||
|
}
|
||
|
|
||
|
export interface Scheduler {
|
||
|
update_subscribed?: boolean;
|
||
|
download_pending?: boolean;
|
||
|
check_reindex?: CheckReindex;
|
||
|
check_reindex_days?: number;
|
||
|
thumbnail_check?: CheckReindex;
|
||
|
run_backup?: CheckReindex;
|
||
|
run_backup_rotate?: number;
|
||
|
}
|
||
|
|
||
|
export interface CheckReindex {
|
||
|
minute?: string;
|
||
|
hour?: string;
|
||
|
day_of_week?: string;
|
||
|
}
|
||
|
|
||
|
export interface Subscriptions {
|
||
|
auto_search?: boolean;
|
||
|
auto_download?: boolean;
|
||
|
channel_size?: number;
|
||
|
}
|
||
|
|
||
|
export interface Datum {
|
||
|
active?: boolean;
|
||
|
category?: Category[];
|
||
|
channel?: Channel;
|
||
|
date_downloaded?: number;
|
||
|
description?: string;
|
||
|
media_url?: string;
|
||
|
player?: Player;
|
||
|
playlist?: Playlist[];
|
||
|
published?: string;
|
||
|
stats?: Stats;
|
||
|
tags?: string[];
|
||
|
title?: string;
|
||
|
vid_last_refresh?: LastRefresh;
|
||
|
vid_thumb_base64?: string;
|
||
|
vid_thumb_url?: string;
|
||
|
youtube_id?: string;
|
||
|
}
|
||
|
|
||
|
export enum Category {
|
||
|
Comedy = "Comedy",
|
||
|
}
|
||
|
|
||
|
export interface Channel {
|
||
|
channel_active?: boolean;
|
||
|
channel_banner_url?: ChannelBannerURL;
|
||
|
channel_description?: string;
|
||
|
channel_id?: ChannelID;
|
||
|
channel_last_refresh?: LastRefresh;
|
||
|
channel_name?: ChannelName;
|
||
|
channel_subs?: number;
|
||
|
channel_subscribed?: boolean;
|
||
|
channel_thumb_url?: ChannelThumbURL;
|
||
|
channel_tvart_url?: boolean;
|
||
|
channel_views?: number;
|
||
|
}
|
||
|
|
||
|
export enum ChannelBannerURL {
|
||
|
CacheChannelsUCh9IfI45Mmk59EDvSWtuuhQBannerJpg = "/cache/channels/UCh9IfI45mmk59eDvSWtuuhQ_banner.jpg",
|
||
|
}
|
||
|
|
||
|
export enum ChannelID {
|
||
|
UCh9IfI45Mmk59EDvSWtuuhQ = "UCh9IfI45mmk59eDvSWtuuhQ",
|
||
|
}
|
||
|
|
||
|
export enum LastRefresh {
|
||
|
The15APR2022 = "15 Apr, 2022",
|
||
|
}
|
||
|
|
||
|
export enum ChannelName {
|
||
|
RyanGeorge = "Ryan George",
|
||
|
}
|
||
|
|
||
|
export enum ChannelThumbURL {
|
||
|
CacheChannelsUCh9IfI45Mmk59EDvSWtuuhQThumbJpg = "/cache/channels/UCh9IfI45mmk59eDvSWtuuhQ_thumb.jpg",
|
||
|
}
|
||
|
|
||
|
export interface Player {
|
||
|
watched?: boolean;
|
||
|
duration?: number;
|
||
|
duration_str?: string;
|
||
|
}
|
||
|
|
||
|
export enum Playlist {
|
||
|
PLREUFLEgWzCFru2DUUQoPPzSjcKovP1 = "PLRE-UFLEgWzCFru2DUUQoP_PzSjcKovP1",
|
||
|
}
|
||
|
|
||
|
export interface Stats {
|
||
|
view_count?: number;
|
||
|
like_count?: number;
|
||
|
dislike_count?: number;
|
||
|
average_rating?: null;
|
||
|
}
|