forked from rDrama/rDrama
prevent red error messages
parent
3ac74a77fa
commit
8340265680
|
@ -180,10 +180,13 @@ def process_video(file, v):
|
||||||
os.remove(old)
|
os.remove(old)
|
||||||
abort(400, "Something went wrong processing your video on our end. Please try uploading it to https://pomf2.lain.la and post the link instead.")
|
abort(400, "Something went wrong processing your video on our end. Please try uploading it to https://pomf2.lain.la and post the link instead.")
|
||||||
|
|
||||||
|
is_reencoding = False
|
||||||
if codec != 'h264':
|
if codec != 'h264':
|
||||||
|
is_reencoding = True
|
||||||
copyfile(old, new)
|
copyfile(old, new)
|
||||||
gevent.spawn(reencode_video, old, new)
|
gevent.spawn(reencode_video, old, new)
|
||||||
elif bitrate >= 3000000:
|
elif bitrate >= 3000000:
|
||||||
|
is_reencoding = True
|
||||||
copyfile(old, new)
|
copyfile(old, new)
|
||||||
gevent.spawn(reencode_video, old, new, True)
|
gevent.spawn(reencode_video, old, new, True)
|
||||||
else:
|
else:
|
||||||
|
@ -212,7 +215,7 @@ def process_video(file, v):
|
||||||
posterurl = SITE_FULL_IMAGES + name
|
posterurl = SITE_FULL_IMAGES + name
|
||||||
media.posterurl = posterurl
|
media.posterurl = posterurl
|
||||||
|
|
||||||
if SITE == 'watchpeopledie.tv':
|
if SITE == 'watchpeopledie.tv' and not is_reencoding:
|
||||||
gevent.spawn(rclone_copy, new)
|
gevent.spawn(rclone_copy, new)
|
||||||
|
|
||||||
return url, posterurl, name
|
return url, posterurl, name
|
||||||
|
|
Loading…
Reference in New Issue