fix: autoplay true -> True (Python syntax)
This commit is contained in:
parent
590fa48fbc
commit
0398ca247f
@ -250,7 +250,7 @@ else:
|
||||
ext = h["file_ext"]
|
||||
if ext in video_exts:
|
||||
if media_url:
|
||||
card_subwidgets.append({"widgettype": "VideoPlayer", "options": {"url": media_url, "width": "100%", "autoplay": true}})
|
||||
card_subwidgets.append({"widgettype": "VideoPlayer", "options": {"url": media_url, "width": "100%", "autoplay": True}})
|
||||
elif ext in audio_exts:
|
||||
if media_url:
|
||||
card_subwidgets.append({"widgettype": "Html", "options": {"html": "<audio controls preload=\"metadata\" style=\"width:100%\" src=\"" + media_url + "\"></audio>", "padding": "4px 0"}})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user