master
Aevann1 2022-04-17 15:53:00 +02:00
parent 48c0094ae5
commit e63dcc0c74
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
t = params.get('t', params.get('start', [0]))[0] t = params.get('t', params.get('start', [0]))[0]
if isinstance(t, str): t = t.replace('s','') if isinstance(t, str): t = t.replace('s','')
htmlsource = f'<lite-youtube videoid="{i.group(1)}" params="autoplay=1&modestbranding=1' htmlsource = f'<lite-youtube videoid="{i.group(2)}" params="autoplay=1&modestbranding=1'
if t: htmlsource += f'&start={t}' if t: htmlsource += f'&start={t}'
htmlsource += '"></lite-youtube>' htmlsource += '"></lite-youtube>'