fix: autoplay true -> True (Python syntax)

This commit is contained in:
ymq 2026-08-12 11:16:25 +08:00
parent 590fa48fbc
commit 0398ca247f

View File

@ -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"}})