youtube-dl-php icon indicating copy to clipboard operation
youtube-dl-php copied to clipboard

does `--write-comments` need to be set for comments to be available in `getComments()`?

Open 9x3l6 opened this issue 1 year ago • 4 comments

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,

9x3l6 avatar Dec 25 '23 19:12 9x3l6