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 []
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":

View File

@@ -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":

View File

@@ -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":