From 2fe5d06d3ba2871eb52b8187c5c02600a265c341 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 13:17:03 +0100 Subject: [PATCH] Video and audio --- webinterface.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webinterface.py b/webinterface.py index ba8c007f..1f585843 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1435,9 +1435,9 @@ def individualPostAsHtml(baseDir: str, \ '' \ ''+imageDescription+'\n' attachmentCtr+=1 - elif mediaType=='image/mp4' or \ - mediaType=='image/webm' or \ - mediaType=='image/ogv': + elif mediaType=='video/mp4' or \ + mediaType=='video/webm' or \ + mediaType=='video/ogv': extension='.mp4' if attach['url'].endswith('.webm'): extension='.webm' @@ -1452,8 +1452,8 @@ def individualPostAsHtml(baseDir: str, \ 'Your browser does not support the video tag.' \ '' attachmentCtr+=1 - elif mediaType=='image/mp3' or \ - mediaType=='image/ogg': + elif mediaType=='audio/mp3' or \ + mediaType=='audio/ogg': extension='.mp3' if attach['url'].endswith('.ogg'): extension='.ogg'