|
|
@ -279,7 +279,7 @@ class Plex(Library):
|
|
|
|
|
|
|
|
|
|
|
|
def get_all(self):
|
|
|
|
def get_all(self):
|
|
|
|
logger.info(f"Loading All {self.type}s from Library: {self.name}")
|
|
|
|
logger.info(f"Loading All {self.type}s from Library: {self.name}")
|
|
|
|
key = f"/library/sections/{self.Plex.key}/all?type={utils.searchType(self.Plex.TYPE)}"
|
|
|
|
key = f"/library/sections/{self.Plex.key}/all?includeGuids=1&type={utils.searchType(self.Plex.TYPE)}"
|
|
|
|
container_start = 0
|
|
|
|
container_start = 0
|
|
|
|
container_size = plexapi.X_PLEX_CONTAINER_SIZE
|
|
|
|
container_size = plexapi.X_PLEX_CONTAINER_SIZE
|
|
|
|
results = []
|
|
|
|
results = []
|
|
|
@ -317,11 +317,6 @@ class Plex(Library):
|
|
|
|
def collection_order_query(self, collection, data):
|
|
|
|
def collection_order_query(self, collection, data):
|
|
|
|
collection.sortUpdate(sort=data)
|
|
|
|
collection.sortUpdate(sort=data)
|
|
|
|
|
|
|
|
|
|
|
|
@retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex)
|
|
|
|
|
|
|
|
def get_guids(self, item):
|
|
|
|
|
|
|
|
self.reload(item)
|
|
|
|
|
|
|
|
return item.guids
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex)
|
|
|
|
@retry(stop_max_attempt_number=6, wait_fixed=10000, retry_on_exception=util.retry_if_not_plex)
|
|
|
|
def reload(self, item):
|
|
|
|
def reload(self, item):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|