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);