@xiota:
The pkgver function produces several lines when a system has multiple repositories in pacman.conf with the same package in them.
Please fix.
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.34 |
First Submitted: | 2021-07-26 19:32 (UTC) |
Last Updated: | 2024-08-15 22:12 (UTC) |
@xiota:
The pkgver function produces several lines when a system has multiple repositories in pacman.conf with the same package in them.
Please fix.
The current PKGBUILD's pkgver() is language-dependent. Adding "LANG=C" in front of the pacman command to force the language to English fixes it in the simplest way.
This package provides youtube-dl
command and python imports using yt-dlp
. This is needed because many programs still depend on youtube-dl
even though it was dropped from the extra
repository.
This approach does not work with all programs because yt-dlp
and youtube-dl
are not fully compatible. This package generates a version string that matches the version of yt-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.
I support the ongoing orphan request, as I have no interest in maintaining this package. I was only interested in a one time contribution 2 years ago.
the lib path differences are due to the fact that arch is a rolling release and debian an LTS release.
I merged in the changes from exponential’s MPR package and then tweaked it a bit. import youtube_dl
works now at least, but I haven’t tested it thoroughly so there might still be some oddities, but I’ll be using this for the time being at least. :) (exponential, you might also want to see if the changes in https://gitlab.archlinux.org/freso/AUR-yt-dlp-drop-in/-/commit/f2c694a4434cad229437061b10035c2886919f21 are some you’d want to cherry-pick to your MPR package.)
https://gitlab.archlinux.org/freso/AUR-yt-dlp-drop-in/-/tree/yt-dlp-drop-in
i'm a Debian user, i can't maintain any packages here. The mpr is like the AUR but for deb packages. Convert this for Arch. https://mpr.makedeb.org/packages/yt-dlp-drop-in
I think it ~~only~~ needs this "arch=('all')" changed to "arch=('any')" and "python3" changed to "python".
That version tries harder to pretend that it's youtube-dl. It might still not work though.
Also, here it is not drop-in.
Building python-pafy-git
fails:
==> Starting package()...
Traceback (most recent call last):
File "/tmp/makepkg/build/python-pafy-git/src/pafy/pafy/pafy.py", line 48, in <module>
import youtube_dl
ModuleNotFoundError: No module named 'youtube_dl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/makepkg/build/python-pafy-git/src/pafy/setup.py", line 13, in <module>
from pafy import __version__
File "/tmp/makepkg/build/python-pafy-git/src/pafy/pafy/__init__.py", line 7, in <module>
from .pafy import new
File "/tmp/makepkg/build/python-pafy-git/src/pafy/pafy/pafy.py", line 51, in <module>
raise ImportError(
ImportError: pafy: youtube-dl not found; you can use the internal backend by setting the environmental variable PAFY_BACKEND to "internal". It is not enabled by default because it is not as well maintained as the youtube-dl backend.
Does not provide a full drop-in packaging wise, since versioned dependencies are not met:
:: yt-dlp-drop-in and youtube-dl are in conflict. Remove youtube-dl? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing youtube-dl breaks dependency 'youtube-dl>=2021.06.01' required by mopidy-youtube
regards!
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.