1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Fix for movies resolution not properly imported from Radarr.

This commit is contained in:
Louis Vézina 2020-07-08 22:25:57 -04:00
parent 43a5533a84
commit 254e99531e

View file

@ -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