mirror of
https://github.com/ReviveMii/revivetube
synced 2025-04-29 12:39:25 -04:00
added ruffle for no-flash devices
This commit is contained in:
parent
374e4285a0
commit
27af36b854
1 changed files with 3 additions and 2 deletions
|
@ -384,6 +384,7 @@ WATCH_WII_TEMPLATE = """
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="dark-mode" id="page-body">
|
<body class="dark-mode" id="page-body">
|
||||||
<div style="width: 100%; background-color: #000; text-align: center;">
|
<div style="width: 100%; background-color: #000; text-align: center;">
|
||||||
|
@ -613,7 +614,7 @@ def watch():
|
||||||
video_flv=f"/sigma/videos/{video_id}.flv",
|
video_flv=f"/sigma/videos/{video_id}.flv",
|
||||||
alert_message="")
|
alert_message="")
|
||||||
|
|
||||||
return render_template_string(WATCH_STANDARD_TEMPLATE,
|
return render_template_string(WATCH_WII_TEMPLATE,
|
||||||
title=metadata['title'],
|
title=metadata['title'],
|
||||||
uploader=metadata['uploader'],
|
uploader=metadata['uploader'],
|
||||||
channelId=metadata['channelId'],
|
channelId=metadata['channelId'],
|
||||||
|
@ -623,7 +624,7 @@ def watch():
|
||||||
publishedAt=metadata['publishedAt'],
|
publishedAt=metadata['publishedAt'],
|
||||||
comments=comments,
|
comments=comments,
|
||||||
video_id=video_id,
|
video_id=video_id,
|
||||||
video_mp4=f"/sigma/videos/{video_id}.mp4",
|
video_flv=f"/sigma/videos/{video_id}.flv",
|
||||||
alert_message="")
|
alert_message="")
|
||||||
|
|
||||||
if not os.path.exists(video_mp4_path):
|
if not os.path.exists(video_mp4_path):
|
||||||
|
|
Loading…
Add table
Reference in a new issue