Skip to content

Commit

Permalink
youtube-dl: fix downloads from youtube.
Browse files Browse the repository at this point in the history
It's good that we have a `--HEAD` here but, given that this software is
useless at its named purpose without this patch: let's just patch it
please.

Closes #126066.

Signed-off-by: Rui Chen <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
MikeMcQuaid authored and BrewTestBot committed Mar 19, 2023
1 parent e0bfded commit 200ad6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/youtube-dl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ def install
(prefix/"etc/fish").rmtree
else
virtualenv_install_with_resources
# Handle "ERROR: Unable to extract uploader id" until new release
# https://github.com/ytdl-org/youtube-dl/issues/31530
inreplace libexec/"lib/python3.11/site-packages/youtube_dl/extractor/youtube.py",
"owner_profile_url, 'uploader id')",
"owner_profile_url, 'uploader id', fatal=False)"
man1.install_symlink libexec/"share/man/man1/youtube-dl.1" => "youtube-dl.1"
bash_completion.install libexec/"etc/bash_completion.d/youtube-dl.bash-completion"
fish_completion.install libexec/"etc/fish/completions/youtube-dl.fish"
Expand Down

0 comments on commit 200ad6f

Please sign in to comment.