mirror of https://github.com/morpheus65535/bazarr
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
b2e55e5881
|
@ -83,11 +83,15 @@ def sync_episodes():
|
|||
format = episode['episodeFile']['quality']['quality']['name']
|
||||
resolution = str(episode['episodeFile']['quality']['quality']['resolution']) + 'p'
|
||||
|
||||
videoCodec = episode['episodeFile']['mediaInfo']['videoCodec']
|
||||
videoCodec = SonarrFormatVideoCodec(videoCodec)
|
||||
if 'mediaInfo' in episode['episodeFile']:
|
||||
videoCodec = episode['episodeFile']['mediaInfo']['videoCodec']
|
||||
videoCodec = SonarrFormatVideoCodec(videoCodec)
|
||||
|
||||
audioCodec = episode['episodeFile']['mediaInfo']['audioCodec']
|
||||
audioCodec = SonarrFormatAudioCodec(audioCodec)
|
||||
audioCodec = episode['episodeFile']['mediaInfo']['audioCodec']
|
||||
audioCodec = SonarrFormatAudioCodec(audioCodec)
|
||||
else:
|
||||
videoCodec = None
|
||||
audioCodec = None
|
||||
|
||||
# Add episodes in sonarr to current episode list
|
||||
current_episodes_sonarr.append(episode['id'])
|
||||
|
|
|
@ -86,17 +86,21 @@ def update_movies():
|
|||
format = movie['movieFile']['quality']['quality']['name']
|
||||
resolution = movie['movieFile']['quality']['quality']['resolution'].lstrip('r').lower()
|
||||
|
||||
videoFormat = movie['movieFile']['mediaInfo']['videoFormat']
|
||||
videoCodecID = movie['movieFile']['mediaInfo']['videoCodecID']
|
||||
videoProfile = movie['movieFile']['mediaInfo']['videoProfile']
|
||||
videoCodecLibrary = movie['movieFile']['mediaInfo']['videoCodecLibrary']
|
||||
videoCodec = RadarrFormatVideoCodec(videoFormat, videoCodecID, videoProfile, videoCodecLibrary)
|
||||
if 'mediaInfo' in movie['movieFile']:
|
||||
videoFormat = movie['movieFile']['mediaInfo']['videoFormat']
|
||||
videoCodecID = movie['movieFile']['mediaInfo']['videoCodecID']
|
||||
videoProfile = movie['movieFile']['mediaInfo']['videoProfile']
|
||||
videoCodecLibrary = movie['movieFile']['mediaInfo']['videoCodecLibrary']
|
||||
videoCodec = RadarrFormatVideoCodec(videoFormat, videoCodecID, videoProfile, videoCodecLibrary)
|
||||
|
||||
audioFormat = movie['movieFile']['mediaInfo']['audioFormat']
|
||||
audioCodecID = movie['movieFile']['mediaInfo']['audioCodecID']
|
||||
audioProfile = movie['movieFile']['mediaInfo']['audioProfile']
|
||||
audioAdditionalFeatures = movie['movieFile']['mediaInfo']['audioAdditionalFeatures']
|
||||
audioCodec = RadarrFormatAudioCodec(audioFormat, audioCodecID, audioProfile, audioAdditionalFeatures)
|
||||
audioFormat = movie['movieFile']['mediaInfo']['audioFormat']
|
||||
audioCodecID = movie['movieFile']['mediaInfo']['audioCodecID']
|
||||
audioProfile = movie['movieFile']['mediaInfo']['audioProfile']
|
||||
audioAdditionalFeatures = movie['movieFile']['mediaInfo']['audioAdditionalFeatures']
|
||||
audioCodec = RadarrFormatAudioCodec(audioFormat, audioCodecID, audioProfile, audioAdditionalFeatures)
|
||||
else:
|
||||
videoCodec = None
|
||||
audioCodec = None
|
||||
|
||||
# Add movies in radarr to current movies list
|
||||
current_movies_radarr.append(unicode(movie['tmdbId']))
|
||||
|
|
Loading…
Reference in New Issue