1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00

Allow play m3u8

This commit is contained in:
DanielnetoDotCom 2021-01-07 13:02:49 -03:00
parent 60893128d3
commit 2eb1f0ee25

View file

@ -63,7 +63,7 @@ $description = _substr(html2plainText($video['description']), 0,155);
$sourceMP4 = Video::getSourceFile($video['filename'], ".mp4"); $sourceMP4 = Video::getSourceFile($video['filename'], ".mp4");
if(preg_match("/.m3u8/i", $sourceMP4['url'])){ if(preg_match("/.m3u8/i", $sourceMP4['url'])){
if(CustomizeUser::canDownloadVideos()){ if(CustomizeUser::canDownloadVideos()){
$sourceMP4['url'] = addQueryStringParameter($sourceMP4['url'], "download", 1);
}else{ }else{
$sourceMP4['url'] = ''; $sourceMP4['url'] = '';
} }