norkunas / youtube-dl-php

A PHP wrapper for youtube-dl or yt-dlp.
MIT License
456 stars 158 forks source link

$format->formatId() return 'format' key instead of 'format_id' #183

Closed Nks closed 1 year ago

Nks commented 2 years ago

Type in src/Entity/Format.php

public function getFormatId(): ?string
    {
        return $this->get('format');
    }

Solution:

public function getFormatId(): ?string
    {
        return $this->get('format_id');
    }
norkunas commented 2 years ago

Could you open a PR to fix it? :)

Nks commented 2 years ago

@norkunas done