From ea6c39bebdba45b0069fdfa5db631c40c1653da3 Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Fri, 29 Nov 2024 10:09:04 -0300 Subject: [PATCH] Update --- objects/Encoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/Encoder.php b/objects/Encoder.php index 285ee211..9d0b5e16 100644 --- a/objects/Encoder.php +++ b/objects/Encoder.php @@ -622,7 +622,7 @@ public static function getThumbsFromLinkWithPytube($video_url, $returnFileName = public static function downloadWithPytube($video_url, $filename, $action = 'video') { global $global; - + $video_url = str_replace(array('\\', "'"), array('', ''), $video_url); $pythonScript = $global['systemRootPath'] . "objects/youtube.py"; $command = escapeshellcmd("python3 $pythonScript " . escapeshellarg($video_url) . " " . escapeshellarg($filename)." {$action}"); _error_log("downloadWithPytube($video_url, $filename) " . $command);