From b7c4d9af41ca13446de82148aa0f960e025c3aff Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 24 Jan 2014 11:46:06 +0000 Subject: [PATCH] normalize newlines in encoding errors --- pandora/archive/extract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index a786c3ad..f05149f1 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -254,6 +254,7 @@ def stream(video, target, profile, info, avconv=None): t = "%s.mp4" % target if format == 'mp4' else target if os.path.exists(t): os.unlink(t) + stdout = stdout.replace('\r\n', '\n').replace('\r', '\n') return False, stdout if format == 'mp4': cmd = ['qt-faststart', "%s.mp4" % target, target]