Skip to content

Commit

Permalink
Fix taking best quality: use '-f b' instead of '-f best'
Browse files Browse the repository at this point in the history
  • Loading branch information
waska14 committed Dec 31, 2022
1 parent 346bac6 commit 9227f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Overrides/YoutubeDl/YoutubeDl.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function debug(callable $debug): self

public function getQuietUrl(string $url): ?string
{
$process = $this->processBuilder->build($this->binPath, $this->pythonPath, ['--youtube-skip-dash-manifest', '-f', 'best', '-g', $url]);
$process = $this->processBuilder->build($this->binPath, $this->pythonPath, ['--youtube-skip-dash-manifest', '-f', 'b', '-g', $url]);
$output = $this->getProcessOutput($process);
return Arr::first(array_values(array_filter(explode("\n", $output))));
}
Expand All @@ -92,7 +92,7 @@ public function getData(string $videoUrl): ?array
} catch (\Throwable $e) {}
$process = $this->processBuilder->build($this->binPath, $this->pythonPath, array_merge($params, [
'-f',
'best',
'b',
'--get-url',
'--get-title',
'--get-id',
Expand Down

0 comments on commit 9227f03

Please sign in to comment.