the call in the script should be exec /usr/bin/yt-dlp
to avoid the fork.
Search Criteria
Package Details: yt-dlp-drop-in 2024.08.06-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/yt-dlp-drop-in.git (read-only, click to copy) |
---|---|
Package Base: | yt-dlp-drop-in |
Description: | Provide both youtube-dl command and python imports using yt-dlp |
Upstream URL: | https://aur.archlinux.org/packages/yt-dlp-drop-in |
Licenses: | Unlicense |
Conflicts: | youtube-dl |
Provides: | youtube-dl |
Submitter: | Minmo |
Maintainer: | xiota |
Last Packager: | xiota |
Votes: | 45 |
Popularity: | 0.33 |
First Submitted: | 2021-07-26 19:32 (UTC) |
Last Updated: | 2024-08-15 22:12 (UTC) |
Required by (122)
- album_splitter-git (requires youtube-dl)
- archivebox-git (requires youtube-dl)
- baka-mplayer-git (requires youtube-dl) (optional)
- bomi-git (requires youtube-dl) (optional)
- celluloid-git (requires youtube-dl) (optional)
- clipcommander (requires youtube-dl)
- copypastegrab-git (requires youtube-dl)
- dmscripts-git (requires youtube-dl)
- downline-bin (requires youtube-dl)
- edx-dl (requires youtube-dl)
- edx-downloader-git (requires youtube-dl)
- exmplayer-git (requires youtube-dl) (optional)
- fediplay-git (requires youtube-dl)
- forklift-git (requires youtube-dl)
- gallery-dl (requires youtube-dl) (optional)
- gallery-dl-git (requires youtube-dl) (optional)
- go-tuner-git (requires youtube-dl)
- gomu (requires youtube-dl)
- gpodder-adaptive-git (requires youtube-dl) (optional)
- gpodder-git (requires youtube-dl) (optional)
- Show 102 more...
Sources (1)
Latest Comments
« First ‹ Previous 1 2
qubidt commented on 2023-04-01 15:19 (UTC)
henkm commented on 2021-12-01 02:40 (UTC)
Referring to @Freso's comment on 2021-10-22, is it possible to get the python imports working? I have tried for pafy but can't get it to work.
Minmo commented on 2021-10-27 17:15 (UTC)
@Sematre I made you a co-maintainer if you want to implement those changes
Sematre commented on 2021-10-27 16:52 (UTC) (edited on 2021-10-27 16:53 (UTC) by Sematre)
This would be an awesome package if it were a real drop-in replacement.
It would be better if this package provided an script at /usr/bin/youtube-dl
that calls yt-dlp but with an additional parameter: --compat-options youtube-dl
.
The script could look something like this (just an quick-and-dirty example):
#!/bin/sh
/usr/bin/yt-dlp --compat-options youtube-dl "$@"
A simple symlink just isn't a good replacement.
Freso commented on 2021-10-22 08:48 (UTC)
@Hekuran … If you want to have both installed, you could just, say, not use this package?
@Minmo Have you considered also making a symlink for the Python package? I wanted to make a package similar to this, but I also wanted to make sure any Python import
s would continue to work. Not sure if there’s a decent way to automate this symlinking though.
Hekuran commented on 2021-09-04 07:31 (UTC)
well yt-dlp and youtube-dl dont really conflict with each other, if for some reason someone wants to have both, using your pkg, they cant. how about a shell script in stead of a symlink. or maybe not at all. here is sth to think about :D
cat /usr/local/bin/youtube-dl
#!/bin/sh
test -f /usr/bin/youtube-dl && yt='/usr/bin/youtube-dl'
test -f /usr/bin/yt-dlp && yt='/usr/bin/yt-dlp'
exec "$yt" "$@"
/usr/local/bin comes before the /usr/bin in $PATH , so by only commanding youtube-dl (which mpv requires), it will use yt-dlp, but if you want the OG you command /bin/youtube-dl or just change the order in the script.
or
what you have already done, and also symlink the old youtube-dl
to youtube-dl-old
m040601 commented on 2021-09-02 20:45 (UTC) (edited on 2021-09-02 20:47 (UTC) by m040601)
@minmo
I see what you mean, and you're absolutely right about the scope and use of this same PKGBUILD. But just the short name "XYZ-drop-in" is not 100% immediately obvious . Maybe you could also improve/edit the "Description" with a few characters more, to make it crystal clear ? It doesnt cost you anything. Ex, add what you just explained ?
- "simply a symlink from youtube-dl to yt-dlp"
- caters to other "programs that have youtube-dl as a dependency"
The thing you might be missing is when a common user types "youtube" and/or "dl" or "dlp" and is presented with a barrage of dozens of options. All with a very sparse "Description" and a confusing and similar "Package-Name".
Minmo commented on 2021-09-02 16:13 (UTC)
I think this package falls out of the scope of the mentioned issues as it is simply a symlink from youtube-dl to yt-dlp
By installing this you can install other programs that have youtube-dl as a dependency and only install yt-dlp
It is similar to the neovim-drop-in: https://aur.archlinux.org/packages/neovim-drop-in/
m040601 commented on 2021-09-02 15:36 (UTC) (edited on 2021-09-02 20:27 (UTC) by m040601)
EDIT: someone has also suggested:
...to discuss this issue in the aur mailinglist? Let's offload this decision to the arch TUs and implement whatever they think is appropriate. ...
ORIGINAL COMMENT:May I suggest that the maintainer of this PKGBUILD talk and negotiate with the the maintainers of similar PKGBUILD's ?
With such a fast changing thing like youtube-dl and its variants, by having many eyeballs watching the same PKGBUILD's, this would also means less work for you, the maintainer.
There seems to be a lot of interest in using yt-dlp as a replacement for youtube-dl. This has led to a lot of PKGBUILD's being created in AUR, like mushrooms doing apparentely the same thing.
- https://aur.archlinux.org/packages/python-yt-dlp-git, First Submitted: 2021-07-17 22:12
- https://aur.archlinux.org/packages/yt-dlp, First Submitted: 2021-09-02 14:08
- https://aur.archlinux.org/packages/yt-dlp-git, First Submitted: 2021-08-08 15:20
- https://aur.archlinux.org/packages/youtube-dlp, First Submitted: 2021-01-29 13:53
- https://aur.archlinux.org/packages/youtube-dlp-git, First Submitted: 2021-08-21 10:41
- https://aur.archlinux.org/packages/youtube-dlp-bin, First Submitted: 2021-03-21 23:42
- https://aur.archlinux.org/packages/yt-dlp-drop-in, First Submitted: 2021-07-26 19:32
This:
- confuses users, which one to install ? Which one will still be here maintained in x months ?
- is a complete waste of man power and reduplicating work,
- disperses user votes, maybe one day, with enough votes, yt-dlp could be an official Arch package,without any need for PKGBUILD.
We basicly only need a yt-dlp "normal one", "-git" one and eventually a "-bin" one.
With such a fast changing thing like youtube-dl, by having many eyeballs watching the same PKGBUILDS, this would also means less work for you, the maintainer.
Some more additionally facts:
- yt-dlp is officially called ... hhh... "yt-dlp". It is not officially called "youtube-dlp"
- ...
Pinned Comments
xiota commented on 2023-11-10 18:10 (UTC) (edited on 2024-01-02 18:24 (UTC) by xiota)
This package provides
youtube-dl
command and python imports usingyt-dlp
. This is needed because many programs still depend onyoutube-dl
even though it was dropped from theextra
repository.This approach does not work with all programs because
yt-dlp
andyoutube-dl
are not fully compatible. This package generates a version string that matches the version ofyt-dlp
that is available during build.Alternatives:
aur/youtube-dl
: The last release was a couple years ago with several known bugs.aur/youtube-dl-git
: Development continues at ytdl-org/youtube-dl.