From 9e906a3dee3c2994cfb5352b9eb50a1516536959 Mon Sep 17 00:00:00 2001 From: Gordon Bonthron Date: Wed, 8 Apr 2020 20:48:46 +0100 Subject: [PATCH] Fix crash if an episode has no image Added None check for ep.image --- tvmaze.bundle/Contents/Code/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvmaze.bundle/Contents/Code/__init__.py b/tvmaze.bundle/Contents/Code/__init__.py index 4f5f039..0550631 100644 --- a/tvmaze.bundle/Contents/Code/__init__.py +++ b/tvmaze.bundle/Contents/Code/__init__.py @@ -210,7 +210,7 @@ def update(self, metadata, media, lang, force): # Download the episode thumbnail valid_names = list() - if ep.image.get('original'): + if ep.image is not None and ep.image.get('original'): thumb_url = ep.image.get('original') if thumb_url is not None and len(thumb_url) > 0: # Check that the thumb doesn't already exist before downloading it