Merge pull request #49 from Claers/fix/metadata_copy_broken_with_ffmpeg

Fix: the metadata add create a copy stream error bc of ffmpeg
This commit is contained in:
jiaxin huang
2022-04-28 22:07:49 +08:00
committed by GitHub

View File

@@ -68,8 +68,8 @@ class Youtube
{ {
if (Helper::ffmpegInstalled()) { if (Helper::ffmpegInstalled()) {
$this->addOption('--prefer-ffmpeg'); $this->addOption('--prefer-ffmpeg');
$this->addOption('--add-metadata'); // $this->addOption('--add-metadata');
$this->setOption('--metadata-from-title', "%(artist)s-%(title).64s"); // $this->setOption('--metadata-from-title', "%(artist)s-%(title).64s");
$this->addOption('--extract-audio'); $this->addOption('--extract-audio');
} else { } else {
$this->audioFormat = "m4a"; $this->audioFormat = "m4a";