fix 500 error
parent
f851dbebb8
commit
51b1d5d644
|
@ -1976,9 +1976,13 @@ def start_orgy(v):
|
||||||
orgy_type = 'file'
|
orgy_type = 'file'
|
||||||
data = normalized_link
|
data = normalized_link
|
||||||
#not deduped, cuz cron checks local file, it can't check the url cuz of referrer restriction
|
#not deduped, cuz cron checks local file, it can't check the url cuz of referrer restriction
|
||||||
video_info = ffmpeg.probe(data)
|
try:
|
||||||
seconds = float(video_info['streams'][0]['duration'])
|
video_info = ffmpeg.probe(data)
|
||||||
end_utc = int(time.time() + seconds)
|
except:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
seconds = float(video_info['streams'][0]['duration'])
|
||||||
|
end_utc = int(time.time() + seconds)
|
||||||
else:
|
else:
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue