Fix for refiner when the API doesn't have all the required information.

This commit is contained in:
Louis Vézina 2019-02-15 13:24:16 -05:00
parent c39f0bd339
commit fa1ec9513e
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def update_movies():
if 'videoCodecLibrary' in movie['movieFile']['mediaInfo']: videoCodecLibrary = movie['movieFile']['mediaInfo']['videoCodecLibrary']
videoCodec = RadarrFormatVideoCodec(videoFormat, videoCodecID, videoProfile, videoCodecLibrary)
audioFormat = audioCodec = audioProfile = audioAdditionalFeatures = None
audioFormat = audioCodecID = audioProfile = audioAdditionalFeatures = None
if 'audioFormat' in movie['movieFile']['mediaInfo']: audioFormat = movie['movieFile']['mediaInfo']['audioFormat']
if 'audioCodecID' in movie['movieFile']['mediaInfo']: audioCodecID = movie['movieFile']['mediaInfo']['audioCodecID']
if 'audioProfile' in movie['movieFile']['mediaInfo']: audioProfile = movie['movieFile']['mediaInfo']['audioProfile']