mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update
This commit is contained in:
parent
1754788d9e
commit
9b78e0014b
2 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue