add ability to import unknown tv shows

This commit is contained in:
maxid
2025-12-07 17:38:37 +01:00
parent aca60cd9b7
commit 13b32e7104
6 changed files with 326 additions and 12 deletions

View File

@@ -341,6 +341,46 @@ export interface paths {
patch?: never;
trace?: never;
};
'/api/v1/tv/importable': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/**
* Get All Importable Shows
* @description get a list of unknown shows that were detected in the tv directory and are importable
*/
get: operations['get_all_importable_shows_api_v1_tv_importable_get'];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/api/v1/tv/importable/{show_id}': {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/**
* Import Detected Show
* @description get a list of unknown shows that were detected in the tv directory and are importable
*/
post: operations['import_detected_show_api_v1_tv_importable__show_id__post'];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
'/api/v1/tv/shows/torrents': {
parameters: {
query?: never;
@@ -1625,6 +1665,16 @@ export interface components {
* @enum {integer}
*/
TorrentStatus: 1 | 2 | 3 | 4;
/** TvShowImportSuggestion */
TvShowImportSuggestion: {
/**
* Directory
* Format: path
*/
directory: string;
/** Candidates */
candidates: components['schemas']['MetaDataProviderSearchResult'][];
};
/** UpdateSeasonRequest */
UpdateSeasonRequest: {
min_quality: components['schemas']['Quality'];
@@ -2489,15 +2539,6 @@ export interface operations {
'application/json': components['schemas']['Show'];
};
};
/** @description Show already exists */
409: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': string;
};
};
/** @description Validation Error */
422: {
headers: {
@@ -2591,6 +2632,69 @@ export interface operations {
};
};
};
get_all_importable_shows_api_v1_tv_importable_get: {
parameters: {
query?: {
metadata_provider?: 'tmdb' | 'tvdb';
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['TvShowImportSuggestion'][];
};
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['HTTPValidationError'];
};
};
};
};
import_detected_show_api_v1_tv_importable__show_id__post: {
parameters: {
query: {
directory: string;
};
header?: never;
path: {
/** @description The ID of the show */
show_id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description Successful Response */
204: {
headers: {
[name: string]: unknown;
};
content?: never;
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['HTTPValidationError'];
};
};
};
};
get_shows_with_torrents_api_v1_tv_shows_torrents_get: {
parameters: {
query?: never;