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

@@ -108,7 +108,10 @@ class Plex(metaclass=Singleton):
logger.error(f"获取媒体服务器所有媒体库列表出错:{str(err)}")
return []
libraries = []
black_list = (settings.MEDIASERVER_SYNC_BLACKLIST or '').split(",")
for library in self._libraries:
if library.title in black_list:
continue
match library.type:
case "movie":
library_type = MediaType.MOVIE.value