diff --git a/modules/TMDbInterface.py b/modules/TMDbInterface.py index c72658cb8..d62aad8e6 100755 --- a/modules/TMDbInterface.py +++ b/modules/TMDbInterface.py @@ -20,7 +20,7 @@ class TMDbInterface(WebInterface): API_BASE_URL = 'https://api.themoviedb.org/3/' """Default for how many failed requests lead to a blacklisted entry""" - BLACKLIST_THRESHOLD = 3 + BLACKLIST_THRESHOLD = 5 """Generic translated episode format strings for each language code""" GENERIC_TITLE_FORMATS = { diff --git a/modules/WebInterface.py b/modules/WebInterface.py index 19ef24f9e..cadc6c3b4 100755 --- a/modules/WebInterface.py +++ b/modules/WebInterface.py @@ -59,7 +59,7 @@ def _get(self, url: str, params: dict) -> dict: def download_image(self, image_url: str, destination: 'Path') -> None: """ - Downloads the provided image URL to the destination filepath. + Download the provided image URL to the destination filepath. :param image_url: The image url to download. :param destination: The destination for the requested image. @@ -68,6 +68,7 @@ def download_image(self, image_url: str, destination: 'Path') -> None: # Make parent folder structure destination.parent.mkdir(parents=True, exist_ok=True) + # Attempt to download the image, if an error happens log to user try: with destination.open('wb') as file_handle: file_handle.write(get(image_url).content)