Skip to content

Commit b7910cf

Browse files
danieldaniel
daniel
authored and
daniel
committed
Get embed videos too
1 parent e5e4c16 commit b7910cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

objects/Encoder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,7 @@ static function getDurationFromLink($link) {
18411841
}
18421842

18431843
static function getThumbsFromLink($link, $returnFileName = false) {
1844+
$link = str_replace(array('"', "'"), array('', ''), $link);
18441845
$tmpfname = tempnam(sys_get_temp_dir(), 'thumbs');
18451846
$cmd = self::getYouTubeDLCommand() . " --no-check-certificate --no-playlist --force-ipv4 --write-thumbnail --skip-download -o \"{$tmpfname}.jpg\" \"{$link}\"";
18461847
exec($cmd . " 2>&1", $output, $return_val);

0 commit comments

Comments
 (0)