Skip to content

Options --no-write-comments, --no-write-description, --no-write-thumbnail, --no-write-sub, --no-write-auto-sub #225

Open
@9x3l6

Description

@9x3l6

I'm using these options in my scripts and have added them to my fork of your code. Just putting this here for reference, and if you'd like to add them that would be awesome.

private bool $noWriteComments = false;

    /**
     * Don't write video comments inside .info.json file.
     */
    public function noWriteComments(bool $noWriteComments): self {
        $new = clone $this;
        $new->noWriteComments = $noWriteComments;

        return $new;
    }

'no-write-comments' => $this->noWriteComments,
private bool $noWriteDescription = false;

    /**
     * Don't write video description to a .description file.
     */
    public function noWriteDescription(bool $noWriteDescription): self {
        $new = clone $this;
        $new->noWriteDescription = $noWriteDescription;

        return $new;
    }

'no-write-description' => $this->noWriteDescription,
private bool $noWriteThumbnail = false;

    /**
     * Don't write thumbnail image to disk.
     */
    public function noWriteThumbnail(bool $noWriteThumbnail): self {
        $new = clone $this;
        $new->noWriteThumbnail = $noWriteThumbnail;

        return $new;
    }

'no-write-thumbnail' => $this->noWriteThumbnail,
private ?bool $noWriteSub = false;

    /**
     * Don't write subtitle file.
     */
    public function noWriteSub(bool $noWriteSub): self {
        $new = clone $this;
        $new->noWriteSub = $noWriteSub;

        return $new;
    }

'no-write-sub' => $this->noWriteSub,
private ?bool $noWriteAutoSub = false;

    /**
     * Write automatically generated subtitle file (YouTube only).
     */
    public function noWriteAutoSub(bool $noWriteAutoSub): self {
        $new = clone $this;
        $new->noWriteAutoSub = $noWriteAutoSub;

        return $new;
    }

'no-write-auto-sub' => $this->noWriteAutoSub,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions