mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
Allow play m3u8
This commit is contained in:
parent
60893128d3
commit
2eb1f0ee25
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ $description = _substr(html2plainText($video['description']), 0,155);
|
|||
$sourceMP4 = Video::getSourceFile($video['filename'], ".mp4");
|
||||
if(preg_match("/.m3u8/i", $sourceMP4['url'])){
|
||||
if(CustomizeUser::canDownloadVideos()){
|
||||
|
||||
$sourceMP4['url'] = addQueryStringParameter($sourceMP4['url'], "download", 1);
|
||||
}else{
|
||||
$sourceMP4['url'] = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue