mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
更新 plex.py
This commit is contained in:
@@ -170,9 +170,9 @@ class Plex:
|
|||||||
sections = self._plex.library.sections()
|
sections = self._plex.library.sections()
|
||||||
movie_count = tv_count = episode_count = 0
|
movie_count = tv_count = episode_count = 0
|
||||||
# 媒体库白名单
|
# 媒体库白名单
|
||||||
allow_library = [lib.id for lib in self.get_librarys(hidden=True)]
|
allow_library = [str(lib.id) for lib in self.get_librarys(hidden=True)]
|
||||||
for sec in sections:
|
for sec in sections:
|
||||||
if sec.key not in allow_library:
|
if str(sec.key) not in allow_library:
|
||||||
continue
|
continue
|
||||||
if sec.type == "movie":
|
if sec.type == "movie":
|
||||||
movie_count += sec.totalSize
|
movie_count += sec.totalSize
|
||||||
|
|||||||
Reference in New Issue
Block a user