Skip to content

Commit

Permalink
good
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTcat committed Jan 24, 2021
1 parent 812b6f3 commit 517f61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h1>ACG.WATCH</h1>
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'));
Expand All @@ -198,7 +198,7 @@ <h1>ACG.WATCH</h1>
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)));
Expand Down

0 comments on commit 517f61a

Please sign in to comment.