From 2ceaac6c6d842cbb6b79f78604fcc04b72d591a8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 13 Feb 2014 12:09:49 +0000 Subject: [PATCH] set error if upload file can not be decoded --- pandora/archive/extract.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index f05149f1..a54548c0 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -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