|
|
@ -86,6 +86,7 @@ def update_movies():
|
|
|
|
format = movie['movieFile']['quality']['quality']['name']
|
|
|
|
format = movie['movieFile']['quality']['quality']['name']
|
|
|
|
resolution = movie['movieFile']['quality']['quality']['resolution'].lstrip('r').lower()
|
|
|
|
resolution = movie['movieFile']['quality']['quality']['resolution'].lstrip('r').lower()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if 'mediaInfo' in movie['movieFile']:
|
|
|
|
videoFormat = movie['movieFile']['mediaInfo']['videoFormat']
|
|
|
|
videoFormat = movie['movieFile']['mediaInfo']['videoFormat']
|
|
|
|
videoCodecID = movie['movieFile']['mediaInfo']['videoCodecID']
|
|
|
|
videoCodecID = movie['movieFile']['mediaInfo']['videoCodecID']
|
|
|
|
videoProfile = movie['movieFile']['mediaInfo']['videoProfile']
|
|
|
|
videoProfile = movie['movieFile']['mediaInfo']['videoProfile']
|
|
|
@ -97,6 +98,9 @@ def update_movies():
|
|
|
|
audioProfile = movie['movieFile']['mediaInfo']['audioProfile']
|
|
|
|
audioProfile = movie['movieFile']['mediaInfo']['audioProfile']
|
|
|
|
audioAdditionalFeatures = movie['movieFile']['mediaInfo']['audioAdditionalFeatures']
|
|
|
|
audioAdditionalFeatures = movie['movieFile']['mediaInfo']['audioAdditionalFeatures']
|
|
|
|
audioCodec = RadarrFormatAudioCodec(audioFormat, audioCodecID, audioProfile, audioAdditionalFeatures)
|
|
|
|
audioCodec = RadarrFormatAudioCodec(audioFormat, audioCodecID, audioProfile, audioAdditionalFeatures)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
videoCodec = None
|
|
|
|
|
|
|
|
audioCodec = None
|
|
|
|
|
|
|
|
|
|
|
|
# Add movies in radarr to current movies list
|
|
|
|
# Add movies in radarr to current movies list
|
|
|
|
current_movies_radarr.append(unicode(movie['tmdbId']))
|
|
|
|
current_movies_radarr.append(unicode(movie['tmdbId']))
|
|
|
|