feature: add season download and request functionality

This commit is contained in:
WonderAliceUwU committed 2026-07-07 16:02:41 +02:00
1 parent 98db35d367
commit 55956bc52d
6 files changed
+1227 -353

No files matched your search

+25
View File
@@ -109,13 +109,19 @@ export interface MediaCard {
export interface TitleDetailsEpisode {
id: string;
seasonId?: string;
title: string;
overview: string;
subtitle: string;
imageUrl: string;
airDate?: string;
seasonNumber?: number;
episodeNumber?: number;
runtimeMinutes?: number;
availableInJellyfin?: boolean;
availability?: 'available' | 'downloading' | 'missing' | 'unaired';
canDownload?: boolean;
canDelete?: boolean;
watched?: boolean;
progress?: number;
playbackPositionTicks?: number;
@@ -126,12 +132,21 @@ export interface TitleDetailsSeason {
title: string;
seasonNumber?: number;
episodeCount?: number;
availableEpisodeCount?: number;
missingEpisodeCount?: number;
canDownload?: boolean;
canDelete?: boolean;
isDownloading?: boolean;
downloadStatus?: 'idle' | 'processing' | 'downloading';
downloadProgress?: number;
downloadLabel?: string;
}
export interface TitleDetailsResponse {
id: string;
tmdbId?: number;
providerId?: string;
sonarrSeriesId?: number;
playTargetId?: string;
availableInJellyfin: boolean;
title: string;
@@ -183,6 +198,16 @@ export interface EpisodeWatchStateRequest {
watched: boolean;
}
export interface SeasonRequestPayload {
seriesId: number;
seasonNumber: number;
}
export interface SeasonDeletePayload {
seriesId: number;
seasonNumber: number;
}
export interface HubSection {
id: string;
title: string;