From c15de59122cf8dcbb46ca0f8df261de61ef01278 Mon Sep 17 00:00:00 2001 From: Halali Date: Fri, 22 Mar 2019 21:13:51 +0100 Subject: [PATCH] Catch missing resolution error in episode sync --- bazarr/get_episodes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bazarr/get_episodes.py b/bazarr/get_episodes.py index f270be9f9..49ddc0a4c 100644 --- a/bazarr/get_episodes.py +++ b/bazarr/get_episodes.py @@ -81,7 +81,10 @@ def sync_episodes(): format, resolution = episode['episodeFile']['quality']['quality']['name'].split('-') except: format = episode['episodeFile']['quality']['quality']['name'] - resolution = str(episode['episodeFile']['quality']['quality']['resolution']) + 'p' + try: + resolution = str(episode['episodeFile']['quality']['quality']['resolution']) + 'p' + except: + resolution = None if 'mediaInfo' in episode['episodeFile']: if 'videoCodec' in episode['episodeFile']['mediaInfo']: