Don't convert requiredBandwidths to list

This commit is contained in:
JonnyWong16 2020-09-30 11:18:12 -07:00
commit 11f2f8ff81
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -208,7 +208,7 @@ class Export(object):
'size': None, 'size': None,
'sizeHuman': lambda o: helpers.human_file_size(getattr(o, 'size', 0)), 'sizeHuman': lambda o: helpers.human_file_size(getattr(o, 'size', 0)),
'optimizedForStreaming': None, 'optimizedForStreaming': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'syncItemId': None, 'syncItemId': None,
'syncState': None, 'syncState': None,
'videoProfile': None, 'videoProfile': None,
@ -246,7 +246,7 @@ class Export(object):
'pixelFormat': None, 'pixelFormat': None,
'profile': None, 'profile': None,
'refFrames': None, 'refFrames': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'scanType': None, 'scanType': None,
'streamIdentifier': None, 'streamIdentifier': None,
'width': None 'width': None
@ -273,7 +273,7 @@ class Export(object):
'dialogNorm': None, 'dialogNorm': None,
'duration': None, 'duration': None,
'profile': None, 'profile': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'samplingRate': None 'samplingRate': None
}, },
'subtitleStreams': { 'subtitleStreams': {
@ -286,7 +286,7 @@ class Export(object):
'index': None, 'index': None,
'language': None, 'language': None,
'languageCode': None, 'languageCode': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'selected': None, 'selected': None,
'streamType': None, 'streamType': None,
'title': None, 'title': None,
@ -498,7 +498,7 @@ class Export(object):
'size': None, 'size': None,
'sizeHuman': lambda o: helpers.human_file_size(getattr(o, 'size', 0)), 'sizeHuman': lambda o: helpers.human_file_size(getattr(o, 'size', 0)),
'optimizedForStreaming': None, 'optimizedForStreaming': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'syncItemId': None, 'syncItemId': None,
'syncState': None, 'syncState': None,
'videoProfile': None, 'videoProfile': None,
@ -536,7 +536,7 @@ class Export(object):
'pixelFormat': None, 'pixelFormat': None,
'profile': None, 'profile': None,
'refFrames': None, 'refFrames': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'scanType': None, 'scanType': None,
'streamIdentifier': None, 'streamIdentifier': None,
'width': None 'width': None
@ -563,7 +563,7 @@ class Export(object):
'dialogNorm': None, 'dialogNorm': None,
'duration': None, 'duration': None,
'profile': None, 'profile': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'samplingRate': None 'samplingRate': None
}, },
'subtitleStreams': { 'subtitleStreams': {
@ -576,7 +576,7 @@ class Export(object):
'index': None, 'index': None,
'language': None, 'language': None,
'languageCode': None, 'languageCode': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'selected': None, 'selected': None,
'streamType': None, 'streamType': None,
'title': None, 'title': None,
@ -771,7 +771,7 @@ class Export(object):
'key': None, 'key': None,
'size': None, 'size': None,
'sizeHuman': lambda o: helpers.human_file_size(getattr(o, 'size', 0)), 'sizeHuman': lambda o: helpers.human_file_size(getattr(o, 'size', 0)),
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'syncItemId': None, 'syncItemId': None,
'syncState': None, 'syncState': None,
'audioStreams': { 'audioStreams': {
@ -798,7 +798,7 @@ class Export(object):
'loudness': None, 'loudness': None,
'lra': None, 'lra': None,
'peak': None, 'peak': None,
'requiredBandwidths': lambda e: [int(b) for b in e.split(',')] if e else None, 'requiredBandwidths': None,
'samplingRate': None, 'samplingRate': None,
'startRamp': None, 'startRamp': None,
}, },