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

@@ -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.