From 200ad6f82c69fec86819051be39159e997707599 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 18 Mar 2023 18:00:44 -0400 Subject: [PATCH] youtube-dl: fix downloads from youtube. 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 Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/youtube-dl.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/youtube-dl.rb b/Formula/youtube-dl.rb index 00688f9aa1a7..4bc9f5517eae 100644 --- a/Formula/youtube-dl.rb +++ b/Formula/youtube-dl.rb @@ -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"