瀏覽代碼

Fix video on home page

master
tr4ck3ur des JM2L 9 年之前
父節點
當前提交
413ab265e8
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      jm2l/views.py

+ 3
- 3
jm2l/views.py 查看文件

@@ -175,9 +175,9 @@ def JSON_TimeLine_Request(request):
if ev.event_type:
CurMedia = ev.video.first() or ""
if CurMedia:
Container = """<video controls="controls" preload="metadata">"""
Container += "<source type=\"" + CurMedia.mime_type + "\""
Container += " src=\"" + CurMedia.get_path + "\" />"
Container = "<video controls='controls' preload='metadata'>"
Container += "<source type='%s' " % CurMedia.mime_type
Container += "src='%s' />" % CurMedia.get_path
Container += "</video>"
else:
Container = ""


Loading…
取消
儲存