fix video posters

master
Aevann 2024-10-26 15:58:51 +03:00
parent f66ff60ac1
commit f2bb2ea624
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def video_sub_regex_matcher(match, obj):
g.db.add(media_usage)
if media.posterurl:
return f'<p class="resizable"><video poster="{media.posterurl[0]}" controls preload="none" src="{url}"></video></p>'
return f'<p class="resizable"><video poster="{media.posterurl}" controls preload="none" src="{url}"></video></p>'
return f'<p class="resizable"><video controls preload="none" src="{url}"></video></p>'
audio_regex_extensions = '|'.join(AUDIO_FORMATS)