mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-22 12:40:56 +03:00
Added ability to modify file metadata
This commit is contained in:
@@ -100,6 +100,7 @@ export type { UpdateCategoriesRequest } from './models/UpdateCategoriesRequest';
|
||||
export type { UpdateCategoryRequest } from './models/UpdateCategoryRequest';
|
||||
export type { UpdateConcurrentStreamRequest } from './models/UpdateConcurrentStreamRequest';
|
||||
export type { UpdateConcurrentStreamResponse } from './models/UpdateConcurrentStreamResponse';
|
||||
export type { UpdateFileRequest } from './models/UpdateFileRequest';
|
||||
export type { UpdatePlaylistRequest } from './models/UpdatePlaylistRequest';
|
||||
export type { UpdaterStatus } from './models/UpdaterStatus';
|
||||
export type { UpdateServerRequest } from './models/UpdateServerRequest';
|
||||
|
||||
@@ -2,10 +2,16 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Category } from './Category';
|
||||
|
||||
export type DatabaseFile = {
|
||||
id: string;
|
||||
title: string;
|
||||
/**
|
||||
* Backup if thumbnailPath is not defined
|
||||
*/
|
||||
thumbnailURL: string;
|
||||
thumbnailPath?: string;
|
||||
isAudio: boolean;
|
||||
/**
|
||||
* In seconds
|
||||
@@ -13,9 +19,15 @@ export type DatabaseFile = {
|
||||
duration: number;
|
||||
url: string;
|
||||
uploader: string;
|
||||
/**
|
||||
* In bytes
|
||||
*/
|
||||
size: number;
|
||||
path: string;
|
||||
upload_date: string;
|
||||
uid: string;
|
||||
sharingEnabled?: boolean;
|
||||
category?: Category;
|
||||
view_count?: number;
|
||||
local_view_count?: number;
|
||||
};
|
||||
@@ -4,4 +4,5 @@
|
||||
|
||||
export type SuccessObject = {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
};
|
||||
14
src/api-types/models/UpdateFileRequest.ts
Normal file
14
src/api-types/models/UpdateFileRequest.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type UpdateFileRequest = {
|
||||
/**
|
||||
* Video UID
|
||||
*/
|
||||
uid: string;
|
||||
/**
|
||||
* Object with fields to update as keys and their new values
|
||||
*/
|
||||
change_obj: any;
|
||||
};
|
||||
Reference in New Issue
Block a user