From 551096972d451e55ee5bfe37c9aca61edc82032e Mon Sep 17 00:00:00 2001 From: "cn.yimian.xyz" Date: Sun, 24 Jan 2021 17:29:35 +0800 Subject: [PATCH] fixpm4error --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 274cd5b..2bdac0e 100644 --- a/index.php +++ b/index.php @@ -23,6 +23,10 @@ yimian__log("log_api", array("api" => "video", "timestamp" => date('Y-m-d H:i:s' function returnVideo($path){ + if($path == '404.pm4'){ + header("Location: https://cdn.yimian.xyz/video/404.mp4"); + return; + } $url = getVideo($path); header("Location: $url"); }