summaryrefslogtreecommitdiff
path: root/mediabrowser/__init__.py
diff options
context:
space:
mode:
authorUser Jack <jack@garcon.2.localnet.cc>2016-01-02 11:49:34 +0000
committerYves Fischer <yvesf-git@xapek.org>2016-01-08 20:38:18 +0100
commita11dcb6ae177dfce7725d43a37648770d7340062 (patch)
treed8ac5eedc883427cd5ebf98959b091de01c7657f /mediabrowser/__init__.py
parent7c6120bae3ed4e7cdd015b536a53bb2724967013 (diff)
downloadflask-mediabrowser-a11dcb6ae177dfce7725d43a37648770d7340062.tar.gz
flask-mediabrowser-a11dcb6ae177dfce7725d43a37648770d7340062.zip
pick video stream not just stream number 0
Diffstat (limited to 'mediabrowser/__init__.py')
-rw-r--r--mediabrowser/__init__.py4
1 files changed, 2 insertions, 2 deletions
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