mirror of https://gitlab.com/bashrc2/epicyon
Video and audio
parent
37d824ddd1
commit
2fe5d06d3b
|
@ -1435,9 +1435,9 @@ def individualPostAsHtml(baseDir: str, \
|
|||
'<a href="'+attach['url']+'">' \
|
||||
'<img src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\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.' \
|
||||
'</video>'
|
||||
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'
|
||||
|
|
Loading…
Reference in New Issue