|
|
|
@ -50,9 +50,7 @@ |
|
|
|
|
}else{ |
|
|
|
|
cookie.set('last_watch', page.params.url); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var dp = {}; |
|
|
|
|
|
|
|
|
|
$.post("https://acg.watch/api/getQuality.php?url="+page.params.url, function(res){ |
|
|
|
|
|
|
|
|
|
options.video.quality = JSON.parse(res); |
|
|
|
@ -71,17 +69,15 @@ |
|
|
|
|
} |
|
|
|
|
}, 1000); |
|
|
|
|
/* next video */ |
|
|
|
|
dp.on('ended', function() { |
|
|
|
|
dp.on('ended', next_video); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var next_video = function() { |
|
|
|
|
cookie.set($.md5(options.video.quality[0].url), "0"); |
|
|
|
|
$.post("https://acg.watch/api/getNext.php?url="+options.video.quality[0].url, function(res){ |
|
|
|
|
res = JSON.parse(res); |
|
|
|
|
dp.notice("正在自动跳转至下一集", 4000); |
|
|
|
|
setTimeout(next_video, 2000); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var next_video = function(){ |
|
|
|
|
setTimeout(function(){ |
|
|
|
|
cookie.set('last_watch', res.url); |
|
|
|
|
history.pushState({},page.title,"https://acg.watch/player?url="+res.url); |
|
|
|
|
page.params.url = res.url; |
|
|
|
@ -106,8 +102,9 @@ |
|
|
|
|
|
|
|
|
|
//setTimeout(function(){dp.switchQuality(0);}, 1000); |
|
|
|
|
}); |
|
|
|
|
}, 2000); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
</body> |
|
|
|
|
</html> |
|
|
|
|