Video and audio

master
Bob Mottram 2019-08-30 13:17:03 +01:00
parent 37d824ddd1
commit 2fe5d06d3b
1 changed files with 5 additions and 5 deletions

View File

@ -1435,9 +1435,9 @@ def individualPostAsHtml(baseDir: str, \
'<a href="'+attach['url']+'">' \ '<a href="'+attach['url']+'">' \
'<img src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\n' '<img src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\n'
attachmentCtr+=1 attachmentCtr+=1
elif mediaType=='image/mp4' or \ elif mediaType=='video/mp4' or \
mediaType=='image/webm' or \ mediaType=='video/webm' or \
mediaType=='image/ogv': mediaType=='video/ogv':
extension='.mp4' extension='.mp4'
if attach['url'].endswith('.webm'): if attach['url'].endswith('.webm'):
extension='.webm' extension='.webm'
@ -1452,8 +1452,8 @@ def individualPostAsHtml(baseDir: str, \
'Your browser does not support the video tag.' \ 'Your browser does not support the video tag.' \
'</video>' '</video>'
attachmentCtr+=1 attachmentCtr+=1
elif mediaType=='image/mp3' or \ elif mediaType=='audio/mp3' or \
mediaType=='image/ogg': mediaType=='audio/ogg':
extension='.mp3' extension='.mp3'
if attach['url'].endswith('.ogg'): if attach['url'].endswith('.ogg'):
extension='.ogg' extension='.ogg'