From b1858f4849d73a0184ed10068b5b4ea95c526bad Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:42:00 +0800 Subject: [PATCH] fix #2931 --- app/modules/emby/emby.py | 3 ++- app/modules/jellyfin/jellyfin.py | 3 ++- app/modules/plex/plex.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/modules/emby/emby.py b/app/modules/emby/emby.py index 9a3d077c..4259c22b 100644 --- a/app/modules/emby/emby.py +++ b/app/modules/emby/emby.py @@ -146,7 +146,8 @@ class Emby: return [] libraries = [] for library in self.__get_emby_librarys(username) or []: - if hidden and self._sync_libraries and library.get("Id") not in self._sync_libraries: + if hidden and self._sync_libraries and "all" not in self._sync_libraries \ + and library.get("Id") not in self._sync_libraries: continue match library.get("CollectionType"): case "movies": diff --git a/app/modules/jellyfin/jellyfin.py b/app/modules/jellyfin/jellyfin.py index d359a881..04320a92 100644 --- a/app/modules/jellyfin/jellyfin.py +++ b/app/modules/jellyfin/jellyfin.py @@ -143,7 +143,8 @@ class Jellyfin: return [] libraries = [] for library in self.__get_jellyfin_librarys(username) or []: - if hidden and self._sync_libraries and library.get("Id") not in self._sync_libraries: + if hidden and self._sync_libraries and "all" not in self._sync_libraries \ + and library.get("Id") not in self._sync_libraries: continue match library.get("CollectionType"): case "movies": diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index f64304d1..e6f51030 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -134,7 +134,8 @@ class Plex: return [] libraries = [] for library in self._libraries: - if hidden and self._sync_libraries and str(library.key) not in self._sync_libraries: + if hidden and self._sync_libraries and "all" not in self._sync_libraries \ + and str(library.key) not in self._sync_libraries: continue match library.type: case "movie":