Merge pull request #2932 from InfinityPacer/feature/module

This commit is contained in:
jxxghp
2024-10-25 06:52:57 +08:00
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@@ -146,7 +146,8 @@ class Emby:
return [] return []
libraries = [] libraries = []
for library in self.__get_emby_librarys(username) or []: 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 continue
match library.get("CollectionType"): match library.get("CollectionType"):
case "movies": case "movies":

View File

@@ -143,7 +143,8 @@ class Jellyfin:
return [] return []
libraries = [] libraries = []
for library in self.__get_jellyfin_librarys(username) or []: 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 continue
match library.get("CollectionType"): match library.get("CollectionType"):
case "movies": case "movies":

View File

@@ -134,7 +134,8 @@ class Plex:
return [] return []
libraries = [] libraries = []
for library in self._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 continue
match library.type: match library.type:
case "movie": case "movie":