update type of the library parameter to string, instead of generating a list of possible values dynamically

This commit is contained in:
maxDorninger
2025-09-12 20:05:02 +02:00
parent d6c1a03d78
commit 6f8d3eea4e
3 changed files with 4 additions and 8 deletions

View File

@@ -279,9 +279,7 @@ def get_movie_files_by_movie_id(movie_service: movie_service_dep, movie_id: Movi
def set_library(
movie_id: MovieId,
movie_service: movie_service_dep,
library: Literal[
*[x.name for x in AllEncompassingConfig().misc.movie_libraries], "Default"
],
library: str,
) -> None:
"""
Sets the library of a movie.

View File

@@ -176,9 +176,7 @@ def get_a_shows_torrents(show: show_dep, tv_service: tv_service_dep):
def set_library(
show: show_dep,
tv_service: tv_service_dep,
library: Literal[
*[x.name for x in AllEncompassingConfig().misc.tv_libraries], "Default"
],
library: str,
) -> None:
"""
Sets the library of a Show.

View File

@@ -2632,7 +2632,7 @@ export interface operations {
set_library_api_v1_tv_shows__show_id__library_post: {
parameters: {
query: {
library: "Live Action" | "Default";
library: string;
};
header?: never;
path: {
@@ -3491,7 +3491,7 @@ export interface operations {
set_library_api_v1_movies__movie_id__library_post: {
parameters: {
query: {
library: "Documentary" | "Default";
library: string;
};
header?: never;
path: {