From 6f4bdebd883221968d81a6c9968c7ecd49ca0bc6 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 22 Mar 2020 16:45:29 +0100 Subject: [PATCH] format crop string --- pandora/archive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 872ee7ea..90422d47 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -191,7 +191,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}): w = info['video'][0]['width'] - flags['crop']['left'] - flags['crop']['right'] x = flags['crop']['left'] y = flags['crop']['top'] - crop = ',crop=w=%s:h=%s:x=%s:y=%s' (w, h, x, y) + crop = ',crop=w=%s:h=%s:x=%s:y=%s' % (w, h, x, y) aspect = dar * (info['video'][0]['width'] / info['video'][0]['height']) * (w/h) if abs(w/h - aspect) < 0.02: aspect = '%s:%s' % (w, h)