youtube-dl-php
youtube-dl-php copied to clipboard
does `--write-comments` need to be set for comments to be available in `getComments()`?
Not sure where else the code needs to be updated in order to make it so when calling getComments()
it actually returns the comments instead of an empty array.
// ...
private bool $writeComments = false;
// ...
/**
* Write video comments inside .info.json file.
*/
public function writeComments(bool $writeComments): self
{
$new = clone $this;
$new->writeComments = $writeComments;
return $new;
}
// ...
'write-comments' => $this->writeComments,