Adjust to API

This commit is contained in:
Nathan DeTar 2022-04-16 21:02:07 -07:00 committed by GitHub
parent 2b39f2439d
commit fa8404d73e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ export interface Download {
export interface DownloadResponse { export interface DownloadResponse {
data: Datum[]; data: Datum[];
message: string; message: string;
} }
export interface Config { export interface Config {
@ -85,23 +84,29 @@ export interface Subscriptions {
} }
export interface Datum { export interface Datum {
active: boolean; channel_id: string;
category: Category[]; channel_indexed: boolean;
channel: Channel; channel_name: string;
date_downloaded: number; duration: string;
description: string;
media_url: string;
player: Player;
playlist: Playlist[];
published: string; published: string;
stats: Stats; status: string;
tags: string[]; timestamp: number;
title: string; title: string;
vid_last_refresh: LastRefresh;
vid_thumb_base64: string;
vid_thumb_url: string; vid_thumb_url: string;
youtube_id: string; youtube_id: string;
status: "pending";
// active: boolean;
// category: Category[];
// channel: Channel;
// date_downloaded: number;
// description: string;
// media_url: string;
// player: Player;
// playlist: Playlist[];
// stats: Stats;
// tags: string[];
// vid_last_refresh: LastRefresh;
// vid_thumb_base64: string;
} }
export enum Category { export enum Category {