|
|
|
@ -12,11 +12,11 @@ |
|
|
|
|
<body> |
|
|
|
|
<header> |
|
|
|
|
<h1>ACG.WATCH</h1> |
|
|
|
|
<p><span class=".zh"><abbr title="在 ACG.WATCH">在线</abbr>观看经典番剧</span><span class=".en">Watch ACG video <abbr title="At ACG.WATCH">ONLINE</abbr></span></p> |
|
|
|
|
<p><span class=".zh"><abbr title="在 ACG.WATCH">可调教</abbr>的在线视频播放器</span><span class=".en">Watch ACG video <abbr title="At ACG.WATCH">ONLINE</abbr></span></p> |
|
|
|
|
<nav> |
|
|
|
|
<ul> |
|
|
|
|
<li><a href="../" aria-hidden="false"><span class=".zh">主页</span><span class=".en">Homepage</span></a></li> |
|
|
|
|
<li><a href="../"><span class=".zh">列表</span><span class=".en">Playlist</span></a></li> |
|
|
|
|
<li><a href="../list.html"><span class=".zh">列表</span><span class=".en">Playlist</span></a></li> |
|
|
|
|
<li><a href="https://iotcat.me/"><span class=".zh">关于我</span><span class=".en">About Me</span></a></li> |
|
|
|
|
</ul> |
|
|
|
|
</nav> |
|
|
|
@ -180,7 +180,7 @@ $(function(){ |
|
|
|
|
session.onload(()=>{ |
|
|
|
|
if(Object.keys(page.params).length === 0 || !page.params.hasOwnProperty("url")){ |
|
|
|
|
if(!session.get('acg/last_watch')){ |
|
|
|
|
page.params.url = "https://api.yimian.xyz/video/?path=404.mp4"; |
|
|
|
|
page.params.url = "https://cdn.yimian.xyz/video/404.mp4"; |
|
|
|
|
}else{ |
|
|
|
|
page.params.url = session.get('acg/last_watch'); |
|
|
|
|
history.pushState({},page.title,"https://acg.watch/player?url="+session.get('acg/last_watch')); |
|
|
|
@ -198,7 +198,7 @@ $(function(){ |
|
|
|
|
options.danmaku.addition = (res.hasOwnProperty('danmakuAdd'))?res.danmakuAdd:[]; |
|
|
|
|
dp = new DPlayer(options); |
|
|
|
|
/* recover history playing */ |
|
|
|
|
if(options.video.quality[0].url && options.video.quality[0].url != 'https://api.yimian.xyz/video?path=404.mp4'){ |
|
|
|
|
if(options.video.quality[0].url && options.video.quality[0].url != 'https://cdn.yimian.xyz/video/404.mp4'){ |
|
|
|
|
session.onload(()=>{ |
|
|
|
|
if(session.get($.md5(options.video.quality[0].url)) != null){ |
|
|
|
|
dp.seek(session.get($.md5(options.video.quality[0].url))); |
|
|
|
|