Alright, I just sent you a MR which implements a basic replacement of
youtube-dl with yt-dlp. I tested it with audio & video downloading, and
it works fine without needing --compat-options or any argument changes.
The only thing I didn't test was the playlist stuff, because I don't
really understand how that works with the GUI.
On Wed, Nov 16 2022 at 04:47:58 PM -0500, Andres Salomon
<dilin...@queued.net> wrote:
Thanks! We considered a wrapper script that adds --compat-options,
along with a module wrapper. The module wrapper is clearly a bad idea
(and there are packages that depend/recommend youtube-dl and then
import the python module), but I'm leaning against having a wrapper
script. As you mentioned, it would need a conflicts/provides, still
wouldn't provide the python module, and may be more of a hassle than
simply having an empty youtube-dl with a NEWS entry letting people
know about the change. I'm also very worried about silent bugs with
--compat-options that aren't caught because most yt-dlp developers
end up not using and testing it. That's specifically why I'm asking
package maintainers to test out yt-dlp to make sure it works as
intended.
On Wed, Nov 16 2022 at 09:21:02 PM +0000, Barak A. Pearlmutter
<ba...@pearlmutter.net> wrote:
Can do, although patches would be welcome.
Here's a broader suggestion though. I can change the dependency to
"yt-dlp | youtube-dl", but how about if yt-dlp sets up an alternative
(using update-alternatives) for /usr/bin/youtube-dl to a little
script
that tosses a "--compat-options" onto the front and trampolines to
yt-dlp. I suppose youtube-dl should have a final version uploaded
that
also sets itself up with the same update-alternative thing (move the
actual executable to /usr/lib/youtube-dl/youtube-dl), and yt-dlp
would
need to conflict with previous versions of youtube-dl, and should
also
provide:youtube-dl. Anyway, the upshot would be a graceful
transition.
And I'd put a version on the yt-dlp dependency of this particular
package. But in general user scripts which invoke youtube-dl (of
which
there must be a gazillion; I myself have dozens scattered about)
would
keep working.
What do you think?