This commit is contained in:
jxxghp 2023-10-01 12:37:18 +08:00
parent 8b0fba054e
commit e697889aad

View File

@ -117,16 +117,7 @@ class JellyfinModule(_ModuleBase):
"""
if server != "jellyfin":
return None
librarys = self.jellyfin.get_librarys()
if not librarys:
return []
return [schemas.MediaServerLibrary(
server="jellyfin",
id=library.get("id"),
name=library.get("name"),
type=library.get("type"),
path=library.get("path")
) for library in librarys]
return self.jellyfin.get_librarys()
def mediaserver_items(self, server: str, library_id: str) -> Optional[Generator]:
"""