summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-10-30 04:48:17 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-10-30 05:13:43 -0400
commit5d5d04a25548de045059dbd1e59c8c28cead2590 (patch)
tree35e505e9ec6be9c048679d91ab68ecf08b9cad42 /net-misc/yt-dlp
parentwww-client/microsoft-edge: remove old (diff)
downloadgentoo-5d5d04a25548de045059dbd1e59c8c28cead2590.tar.gz
gentoo-5d5d04a25548de045059dbd1e59c8c28cead2590.tar.bz2
gentoo-5d5d04a25548de045059dbd1e59c8c28cead2590.zip
net-misc/yt-dlp: improve compatibility with youtube-dl
Usually not needed, but some more advanced use of options may lead to issues without a wrapper. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-misc/yt-dlp')
-rw-r--r--net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild (renamed from net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild)5
1 files changed, 4 insertions, 1 deletions
diff --git a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
index ccda512819f4..c9b4d7614b7f 100644
--- a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
@@ -42,5 +42,8 @@ python_install_all() {
rm -r "${ED}"/usr/share/doc/yt_dlp || die
- dosym yt-dlp /usr/bin/youtube-dl # compatibility symlink
+ newbin - youtube-dl <<-EOF
+ #!/usr/bin/env sh
+ exec yt-dlp --compat-options youtube-dl "\${@}"
+ EOF
}