Skip to content

Commit

Permalink
Update StreamFormat.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed Nov 3, 2023
1 parent b9f0063 commit 7033cb3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Models/StreamFormat.php
Expand Up @@ -4,24 +4,24 @@

class StreamFormat extends AbstractModel
{
public $itag;
public $mimeType;
public $width;
public $height;
public $contentLength;
public $quality;
public $qualityLabel;
public $audioQuality;
public $audioSampleRate;
public $url;
public $signatureCipher;
public ?int $itag = null;
public ?string $mimeType = null;
public ?int $width = null;
public ?int $height = null;
public ?string $contentLength = null;
public ?string $quality = null;
public ?string $qualityLabel = null;
public ?string $audioQuality = null;
public ?string $audioSampleRate = null;
public ?string $url = null;
public ?string $signatureCipher = null;

public function getCleanMimeType()
public function getCleanMimeType(): ?string
{
return trim(preg_replace('/;.*/', '', $this->mimeType));
}

public function hasRateBypass()
public function hasRateBypass(): bool
{
return strpos($this->url, 'ratebypass') !== false;
}
Expand Down

0 comments on commit 7033cb3

Please sign in to comment.