Files
danmaku/views/danmaku.ejs
2022-11-09 18:28:35 +08:00

112 lines
4.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>主流视频网站弹幕文件解析接口</title>
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery所以必须放在前边) -->
<script src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- Cloudflare Web Analytics -->
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "938fe927c5c44a888fb536713a2f1025"}'></script>
<!-- End Cloudflare Web Analytics -->
</head>
<body>
<div class="container">
<div class="row text-center">
<div class="page-header">
<h1>
主流视频网站弹幕文件解析接口
</h1>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<p>
这是一个弹幕文件解析接口输入你要解析的视频地址即可获得B站弹幕形式的XML文件。<br/>
通过使用<a href="https:///www.dandanplay.com/">弹弹Play播放器</a>
或者<a href='https://tiansh.github.io/us-danmaku/bilibili/'>bilibili ASS 弹幕在线转换项目</a>
转换为普通字幕文件,即可在本地播放器中播放。
</p>
<p>
使用方法在当前页面添加一个查询字符串url<br/>
目前支持芒果TV腾讯视频优酷视频爱奇艺视频哔哩哔哩。<br/>
<strong>温馨提示:点击提交按钮,耐心等待就好,切勿疯狂刷新。</strong><br/>
<!-- 会对弹幕文本进行去重去除包含xml标签的非法弹幕文本 -->
例子:<br/>
<% urls.forEach(function(url) { %>
<%= path %>?url=<%= url %><br/>
<% }); %>
</p>
</div>
<div class="col-sm-4">
</div>
</div>
<div class="row">
<p>在下方直接输入视频网址,点击提交按钮也可解析。</p>
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-1 control-label">视频网址</label>
<div class="col-sm-5">
<!--suppress HtmlFormInputWithoutLabel -->
<input type="text" class="form-control" placeholder="URL" name="url">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-1 col-sm-5">
<div class="checkbox">
<label>
<input type="checkbox" name="download" checked='checked'> 强制下载
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-1 col-sm-5">
<button type="submit" class="btn btn-primary">提交</button>
</div>
</div>
</form>
</div>
<hr/>
<footer class="footer">
<div class="row">
Powered by <a href="https://fly.io/"><strong>Fly.io</strong> </a>
<span class="post-meta-divider">|</span>
Reference blog
<!-- <a href="https://lxmymjr.github.io/contents/%E4%B8%BB%E6%B5%81%E8%A7%86%E9%A2%91%E7%BD%91%E7%AB%99%E5%BC%B9%E5%B9%95%E4%B8%8B%E8%BD%BD">主流视频网站弹幕下载</a>-->
<a href="https://blog.home999.cc/2020/%E5%9F%BA%E4%BA%8E%E9%98%BF%E9%87%8C%E4%BA%91%E5%87%BD%E6%95%B0%E5%AE%9E%E7%8E%B0%E5%BC%B9%E5%B9%95%E6%96%87%E4%BB%B6%E8%A7%A3%E6%9E%90%E6%8E%A5%E5%8F%A3">主流视频网站弹幕下载</a>
</div>
<div class="row">
今日解析量:<span id="today_visited"></span><span class="post-meta-divider"> | </span>
昨日解析量:<span id="lastday_visited"></span><span class="post-meta-divider"> | </span>
当月解析量:<span id="month_visited"></span>
</div>
</footer>
</div>
</body>
<script>
$.ajax({
url: 'pageinfo',
type: 'GET',
dataType: 'json',
success: function (data) {
$('#today_visited').text(data.today_visited);
$('#lastday_visited').text(data.lastday_visited);
$('#month_visited').text(data.month_visited);
}
});
</script>
</html>