From 254e99531e2ee692d1a5738c07dd9f9783949c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 8 Jul 2020 22:25:57 -0400 Subject: [PATCH] Fix for movies resolution not properly imported from Radarr. --- bazarr/get_movies.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazarr/get_movies.py b/bazarr/get_movies.py index 1cab59d65..972c2b2ce 100644 --- a/bazarr/get_movies.py +++ b/bazarr/get_movies.py @@ -109,10 +109,10 @@ def update_movies(): format, resolution = movie['movieFile']['quality']['quality']['name'].split('-') except: format = movie['movieFile']['quality']['quality']['name'] - try: - resolution = movie['movieFile']['quality']['quality']['resolution'].lstrip('r').lower() - except: - resolution = None + try: + resolution = str(movie['movieFile']['quality']['quality']['resolution']) + 'p' + except: + resolution = None if 'mediaInfo' in movie['movieFile']: videoFormat = videoCodecID = videoProfile = videoCodecLibrary = None