|
|
@ -86,17 +86,21 @@ 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()
|
|
|
|
|
|
|
|
|
|
|
|
videoFormat = movie['movieFile']['mediaInfo']['videoFormat']
|
|
|
|
if 'mediaInfo' in movie['movieFile']:
|
|
|
|
videoCodecID = movie['movieFile']['mediaInfo']['videoCodecID']
|
|
|
|
videoFormat = movie['movieFile']['mediaInfo']['videoFormat']
|
|
|
|
videoProfile = movie['movieFile']['mediaInfo']['videoProfile']
|
|
|
|
videoCodecID = movie['movieFile']['mediaInfo']['videoCodecID']
|
|
|
|
videoCodecLibrary = movie['movieFile']['mediaInfo']['videoCodecLibrary']
|
|
|
|
videoProfile = movie['movieFile']['mediaInfo']['videoProfile']
|
|
|
|
videoCodec = RadarrFormatVideoCodec(videoFormat, videoCodecID, videoProfile, videoCodecLibrary)
|
|
|
|
videoCodecLibrary = movie['movieFile']['mediaInfo']['videoCodecLibrary']
|
|
|
|
|
|
|
|
videoCodec = RadarrFormatVideoCodec(videoFormat, videoCodecID, videoProfile, videoCodecLibrary)
|
|
|
|
|
|
|
|
|
|
|
|
audioFormat = movie['movieFile']['mediaInfo']['audioFormat']
|
|
|
|
audioFormat = movie['movieFile']['mediaInfo']['audioFormat']
|
|
|
|
audioCodecID = movie['movieFile']['mediaInfo']['audioCodecID']
|
|
|
|
audioCodecID = movie['movieFile']['mediaInfo']['audioCodecID']
|
|
|
|
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']))
|
|
|
|