mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-12 16:02:35 +08:00
Merge pull request #2932 from InfinityPacer/feature/module
This commit is contained in:
@@ -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":
|
||||||
|
|||||||
@@ -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":
|
||||||
|
|||||||
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user