style: fix input error

issue #209
This commit is contained in:
Spirit 2020-04-01 23:01:02 +08:00
parent f1b22d0fb5
commit f1981117b5

2
inc/api.php Normal file → Executable file
View File

@ -453,7 +453,7 @@ function get_bgm_items($page = 1){
}
$lists = $bgm["list"];
foreach ((array)$lists as $list) {
if(preg_match('/看完/m',$list["new_ep"]['index_show'], $matches_finish)){
if(preg_match('/看完/m',$list["progress"], $matches_finish)){
$percent = 100;
}else{
preg_match('/第(\d+)./m',$list['progress'], $matches_progress);