mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-20 05:54:19 +02:00
update type of the library parameter to string, instead of generating a list of possible values dynamically
This commit is contained in:
@@ -279,9 +279,7 @@ def get_movie_files_by_movie_id(movie_service: movie_service_dep, movie_id: Movi
|
|||||||
def set_library(
|
def set_library(
|
||||||
movie_id: MovieId,
|
movie_id: MovieId,
|
||||||
movie_service: movie_service_dep,
|
movie_service: movie_service_dep,
|
||||||
library: Literal[
|
library: str,
|
||||||
*[x.name for x in AllEncompassingConfig().misc.movie_libraries], "Default"
|
|
||||||
],
|
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Sets the library of a movie.
|
Sets the library of a movie.
|
||||||
|
|||||||
@@ -176,9 +176,7 @@ def get_a_shows_torrents(show: show_dep, tv_service: tv_service_dep):
|
|||||||
def set_library(
|
def set_library(
|
||||||
show: show_dep,
|
show: show_dep,
|
||||||
tv_service: tv_service_dep,
|
tv_service: tv_service_dep,
|
||||||
library: Literal[
|
library: str,
|
||||||
*[x.name for x in AllEncompassingConfig().misc.tv_libraries], "Default"
|
|
||||||
],
|
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Sets the library of a Show.
|
Sets the library of a Show.
|
||||||
|
|||||||
4
web/src/lib/api/api.d.ts
vendored
4
web/src/lib/api/api.d.ts
vendored
@@ -2632,7 +2632,7 @@ export interface operations {
|
|||||||
set_library_api_v1_tv_shows__show_id__library_post: {
|
set_library_api_v1_tv_shows__show_id__library_post: {
|
||||||
parameters: {
|
parameters: {
|
||||||
query: {
|
query: {
|
||||||
library: "Live Action" | "Default";
|
library: string;
|
||||||
};
|
};
|
||||||
header?: never;
|
header?: never;
|
||||||
path: {
|
path: {
|
||||||
@@ -3491,7 +3491,7 @@ export interface operations {
|
|||||||
set_library_api_v1_movies__movie_id__library_post: {
|
set_library_api_v1_movies__movie_id__library_post: {
|
||||||
parameters: {
|
parameters: {
|
||||||
query: {
|
query: {
|
||||||
library: "Documentary" | "Default";
|
library: string;
|
||||||
};
|
};
|
||||||
header?: never;
|
header?: never;
|
||||||
path: {
|
path: {
|
||||||
|
|||||||
Reference in New Issue
Block a user