mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2025-02-16 13:58:25 +00:00
update method for plexAPI 4.3.0
This commit is contained in:
parent
2a16d09a6c
commit
9d5079db4a
2 changed files with 3 additions and 4 deletions
|
@ -492,7 +492,7 @@ class Config:
|
||||||
if sync_collection or collectionless:
|
if sync_collection or collectionless:
|
||||||
logger.info("Sync Mode: sync")
|
logger.info("Sync Mode: sync")
|
||||||
if collection_obj:
|
if collection_obj:
|
||||||
for item in collection_obj.children:
|
for item in collection_obj.items():
|
||||||
map[item.ratingKey] = item
|
map[item.ratingKey] = item
|
||||||
else:
|
else:
|
||||||
logger.info("Sync Mode: append")
|
logger.info("Sync Mode: append")
|
||||||
|
@ -856,7 +856,7 @@ class Config:
|
||||||
items = library.Plex.all()
|
items = library.Plex.all()
|
||||||
items_found += len(items)
|
items_found += len(items)
|
||||||
elif method == "plex_collection":
|
elif method == "plex_collection":
|
||||||
items = value.children
|
items = value.items()
|
||||||
items_found += len(items)
|
items_found += len(items)
|
||||||
elif method == "plex_search":
|
elif method == "plex_search":
|
||||||
search_terms = {}
|
search_terms = {}
|
||||||
|
|
|
@ -186,8 +186,7 @@ class PlexAPI:
|
||||||
|
|
||||||
def add_to_collection(self, collection, items, filters, map={}):
|
def add_to_collection(self, collection, items, filters, map={}):
|
||||||
name = collection.title if isinstance(collection, Collections) else collection
|
name = collection.title if isinstance(collection, Collections) else collection
|
||||||
collection_items = collection.children if isinstance(collection, Collections) else []
|
collection_items = collection.items() if isinstance(collection, Collections) else []
|
||||||
|
|
||||||
total = len(items)
|
total = len(items)
|
||||||
max_length = len(str(total))
|
max_length = len(str(total))
|
||||||
length = 0
|
length = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue