Update la web app pour tirer partie du nouveau systeme de cache
This commit is contained in:
@@ -18,6 +18,7 @@ export interface AudioCacheMetadata {
|
||||
sample_rate?: number;
|
||||
bitrate?: number;
|
||||
channels?: number;
|
||||
conversion?: ConversionInfo;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
@@ -30,6 +31,12 @@ export interface AudioCacheEntry {
|
||||
metadata?: AudioCacheMetadata | null;
|
||||
}
|
||||
|
||||
export interface ConversionInfo {
|
||||
mode: string;
|
||||
input_codec?: string;
|
||||
details?: string;
|
||||
}
|
||||
|
||||
export interface AddTrackRequest {
|
||||
url: string;
|
||||
collection?: string;
|
||||
@@ -43,9 +50,13 @@ export interface AddTrackResponse {
|
||||
|
||||
export interface DownloadStatus {
|
||||
pk: string;
|
||||
status: "pending" | "downloading" | "completed" | "failed";
|
||||
progress?: number;
|
||||
in_progress: boolean;
|
||||
finished: boolean;
|
||||
current_size?: number;
|
||||
transformed_size?: number;
|
||||
expected_size?: number;
|
||||
error?: string;
|
||||
conversion?: ConversionInfo;
|
||||
}
|
||||
|
||||
export interface ApiError {
|
||||
|
||||
Reference in New Issue
Block a user