auto update

old
iotcat 4 years ago
parent 59366815bc
commit 68b4db9ce3
  1. 18
      yimian/www/acg.watch/api/getNext.php
  2. 1
      yimian/www/acg.watch/index.php

@ -0,0 +1,18 @@
<?php
include '../functions.php';
$url = $_REQUEST['url'];
if(!isset($url)) die();
$conn = db__connect();
if(!db__rowNum($conn, "video", "url", $url)) die();
$res = db__getData($conn, "video", "url", $url);
$next = db__getData($conn, "video", "vid", $res[0]["link"]);
echo json_encode(array(
url => $next[0]["url"]
));

@ -11,6 +11,7 @@ $res = db__getData(db__connect(), 'video');
<script src="https://cdn.yimian.xyz/ushio-js/ushio-head.min.js"></script>
</head>
<body>
<h2><script>document.write('<a href="https://acg.watch/player/?url='+cookie.get('last_watch')+'">继续播放上次位置</a>');</script></h2>
<?php
foreach($res as $i){
echo '<a href="https://acg.watch/player/?url='.$i['url'].'" >'.$i['name'].'</a><br/>';

Loading…
Cancel
Save