Fix post de la qualité

This commit is contained in:
redstorm45 2018-02-16 12:05:38 +01:00
parent 5424c90e50
commit 8284267daf

View file

@ -520,7 +520,7 @@ def post_probe(api, fileid, probe_data):
api.put_video_codec(fileid, probe_data['video'][0]['name']) api.put_video_codec(fileid, probe_data['video'][0]['name'])
time.sleep(1) time.sleep(1)
if 'width' in probe_data['video'][0] and 'height' in probe_data['video'][0]: if 'width' in probe_data['video'][0] and 'height' in probe_data['video'][0]:
api.post_file_qualities(fileid, value=probe_data['video'][0]['width']+'x'+probe_data['video'][0]['height']) api.post_file_qualities(fileid, value=str(probe_data['video'][0]['width'])+'x'+str(probe_data['video'][0]['height']))
time.sleep(1) time.sleep(1)
if 'container' in probe_data: if 'container' in probe_data:
api.put_video_container(fileid, probe_data['container']) api.put_video_container(fileid, probe_data['container'])