mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-29 07:50:24 +00:00
more debugging outputs
This commit is contained in:
parent
a6dac0563b
commit
aa96b06508
2 changed files with 13 additions and 2 deletions
|
@ -533,6 +533,8 @@ class Config:
|
|||
logger.info("Collection Error: {} skipped. MyAnimeList must be configured".format(m))
|
||||
map = {}
|
||||
elif collections[c][m] is not None:
|
||||
logger.debug("Method: {}".format(m))
|
||||
logger.debug("Value: {}".format(collections[c][m]))
|
||||
if m in util.method_alias:
|
||||
method_name = util.method_alias[m]
|
||||
logger.warning("Collection Warning: {} attribute will run as {}".format(m, method_name))
|
||||
|
@ -843,8 +845,11 @@ class Config:
|
|||
library.clear_collection_missing(collection_name)
|
||||
|
||||
for method, values in methods:
|
||||
logger.debug("Method: {}".format(method))
|
||||
logger.debug("Values: {}".format(values))
|
||||
pretty = util.pretty_names[method] if method in util.pretty_names else method
|
||||
for value in values:
|
||||
logger.debug("Value: {}".format(value))
|
||||
items = []
|
||||
missing_movies = []
|
||||
missing_shows = []
|
||||
|
@ -986,10 +991,10 @@ class Config:
|
|||
edits["summary.value"] = details["summary"]
|
||||
edits["summary.locked"] = 1
|
||||
if len(edits) > 0:
|
||||
logger.debug(edits)
|
||||
plex_collection.edit(**edits)
|
||||
plex_collection.reload()
|
||||
logger.info("Details: have been updated")
|
||||
logger.debug(edits)
|
||||
if "collection_mode" in details:
|
||||
plex_collection.modeUpdate(mode=details["collection_mode"])
|
||||
if "collection_order" in details:
|
||||
|
|
|
@ -79,7 +79,13 @@ class RadarrAPI:
|
|||
logger.info("Added to Radarr | {:<6} | {}".format(tmdb_id, movie.title))
|
||||
add_count += 1
|
||||
else:
|
||||
logger.error("Radarr Error: ({}) {}: ({}) {}".format(tmdb_id, movie.title, response.status_code, response.json()[0]["errorMessage"]))
|
||||
try:
|
||||
logger.error("Radarr Error: ({}) {}: ({}) {}".format(tmdb_id, movie.title, response.status_code, response.json()[0]["errorMessage"]))
|
||||
except KeyError as e:
|
||||
logger.debug(url_json)
|
||||
logger.debug(response)
|
||||
logger.debug(response.status_code)
|
||||
logger.debug(response.json())
|
||||
logger.info("{} Movie{} added to Radarr".format(add_count, "s" if add_count > 1 else ""))
|
||||
|
||||
@retry(stop_max_attempt_number=6, wait_fixed=10000)
|
||||
|
|
Loading…
Reference in a new issue