mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Update
This commit is contained in:
parent
bfcabe6dfc
commit
aa817608fd
3 changed files with 6 additions and 2 deletions
|
@ -6,7 +6,7 @@ $cacheFeedName = "feedCacheMRSS" . json_encode($_REQUEST);
|
|||
$lifetime = 43200;
|
||||
$feed = ObjectYPT::getCache($cacheFeedName, $lifetime);
|
||||
$link = "{$link}/mrss";
|
||||
$recreate = (!empty($_REQUEST['recreate']) && !isBot());
|
||||
$recreate = recreateCache();
|
||||
if (empty($feed) || $recreate) {
|
||||
_ob_start();
|
||||
echo'<?xml version="1.0" encoding="UTF-8"?>'; ?>
|
||||
|
|
|
@ -532,3 +532,6 @@ function escapeshellcmdURL(string $command)
|
|||
return str_replace('\?', '?', escapeshellcmd($command));
|
||||
}
|
||||
|
||||
function recreateCache(){
|
||||
return (!empty($_REQUEST['recreate']) && !isBot());
|
||||
}
|
||||
|
|
|
@ -4907,7 +4907,8 @@ if (!class_exists('Video')) {
|
|||
|
||||
public static function getSourceFileURL($filename, $includeS3 = false, $fileType = '')
|
||||
{
|
||||
$sources = self::getVideosPaths($filename, $includeS3);
|
||||
$recreate = recreateCache();
|
||||
$sources = self::getVideosPaths($filename, $includeS3, 0, $recreate);
|
||||
if (empty($fileType) || $fileType == 'audio') {
|
||||
if (!empty($sources['mp3'])) {
|
||||
return $sources['mp3'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue