This commit is contained in:
jxxghp
2024-01-06 08:46:18 +08:00
parent 2c8a41ebad
commit 2af7abee3c
8 changed files with 35 additions and 35 deletions

View File

@ -70,7 +70,10 @@ class Jellyfin(metaclass=Singleton):
if not self._host or not self._apikey:
return []
libraries = []
black_list = (settings.MEDIASERVER_SYNC_BLACKLIST or '').split(",")
for library in self.__get_jellyfin_librarys() or []:
if library.get("Name") in black_list:
continue
match library.get("CollectionType"):
case "movies":
library_type = MediaType.MOVIE.value