1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-04-25 11:29:33 -03:00
parent ae3251aad2
commit 9fac56c21c

View file

@ -19,6 +19,9 @@ function download($url, $filename, $path, $forceDownload = false) {
if (empty($parts[1])) {
if (preg_match("/\.mp3$/", $url)) {
$parts[1] = "{$filename}.mp3";
}else if (preg_match("/s3\.cdn\.ypt\.me.*\.mp4$/", $url)) {
$partsCDN = explode("s3.cdn.ypt.me/", $url);
$parts[1] = $partsCDN[1];
}
}