1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
This commit is contained in:
Daniel Neto 2024-12-12 15:21:46 -03:00
parent 1754788d9e
commit 9b78e0014b
2 changed files with 9 additions and 4 deletions

View file

@ -1380,6 +1380,9 @@ function getSources($fileName, $returnArray = false, $try = 0)
if ($returnArray) {
$return = array_merge($videoSources, $audioTracks, $subtitleTracks, $captionsTracks);
} else {
// remove index.mp4
$videoSources = preg_replace('/<source src=".*index.mp4.*" type="video\/mp4" label="Low" res="360">/', '<!-- index.mp4 removed -->', $videoSources);
//var_dump($videoSources);exit;
$return = $videoSources . $audioTracks . PHP_EOL . $subtitleTracks . PHP_EOL . $captionsTracks;
}