1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 01:57:33 +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('-') format, resolution = movie['movieFile']['quality']['quality']['name'].split('-')
except: except:
format = movie['movieFile']['quality']['quality']['name'] format = movie['movieFile']['quality']['quality']['name']
try: try:
resolution = movie['movieFile']['quality']['quality']['resolution'].lstrip('r').lower() resolution = str(movie['movieFile']['quality']['quality']['resolution']) + 'p'
except: except:
resolution = None resolution = None
if 'mediaInfo' in movie['movieFile']: if 'mediaInfo' in movie['movieFile']:
videoFormat = videoCodecID = videoProfile = videoCodecLibrary = None videoFormat = videoCodecID = videoProfile = videoCodecLibrary = None