diff --git a/media_manager/movies/router.py b/media_manager/movies/router.py index bf1d36a..6fb818e 100644 --- a/media_manager/movies/router.py +++ b/media_manager/movies/router.py @@ -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. diff --git a/media_manager/tv/router.py b/media_manager/tv/router.py index 9346ee1..e8a9c19 100644 --- a/media_manager/tv/router.py +++ b/media_manager/tv/router.py @@ -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. diff --git a/web/src/lib/api/api.d.ts b/web/src/lib/api/api.d.ts index 05c4cea..b210e2d 100644 --- a/web/src/lib/api/api.d.ts +++ b/web/src/lib/api/api.d.ts @@ -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: {