preg_match update

fix mediafire html update #12 #13
This commit is contained in:
HKLCF
2019-01-11 12:31:51 +08:00
committed by GitHub
parent 6c06d9ea77
commit f100b89c4d

View File

@@ -23,7 +23,7 @@ if($url) {
$result = file_get_contents($url, false, stream_context_create(['socket' => ['bindto' => '0:0']])); // force IPv4
preg_match('/<a href=\'(.*)\' onclick=\'DLP_mOnDownload\(this\); return true;\'>/', $result, $matches);
preg_match('/aria-label="Download file"\n.+href="(.*)"/', $result, $matches);
$result = urldecode($matches[1]);
$output = [];