From a11dcb6ae177dfce7725d43a37648770d7340062 Mon Sep 17 00:00:00 2001 From: User Jack Date: Sat, 2 Jan 2016 11:49:34 +0000 Subject: pick video stream not just stream number 0 --- mediabrowser/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediabrowser/__init__.py') diff --git a/mediabrowser/__init__.py b/mediabrowser/__init__.py index 8766ac2..62aeb48 100644 --- a/mediabrowser/__init__.py +++ b/mediabrowser/__init__.py @@ -154,8 +154,8 @@ def build(root_directory, cache): if client_mtime is not None and mtime <= client_mtime: return Response(status=304) else: - thumbnail_stream = ffmpeg.thumbnail_video(ospath, 90, 50) - r = Response(thumbnail_stream, mimetype="video/webm") + process = ffmpeg.thumbnail_video(ospath, 90, 50) + r = Response(process.stdout, mimetype="video/webm") r.last_modified = mtime return r -- cgit v1.2.1