forked from 0x2620/pandora
set error if upload file can not be decoded
This commit is contained in:
parent
d91401189c
commit
2ceaac6c6d
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ def stream(video, target, profile, info, avconv=None):
|
|||
profile, format = profile.split('.')
|
||||
bpp = 0.17
|
||||
|
||||
if 'error' in info:
|
||||
return False, "Unsupported Format"
|
||||
|
||||
if profile == '1080p':
|
||||
height = 1080
|
||||
|
||||
|
|
Loading…
Reference in a new issue