On 24/10/2022 04:57, Andres Salomon wrote:
On Mon, 29 Aug 2022 19:09:45 -0400 (EDT) Unit 193 <unit...@unit193.net>
wrote:
> On Mon, 01 Aug 2022 20:10:42 +0200 michel <okgomdjgbm...@gmail.com>
wrote:
> > I fleshed out the proposal a bit more. The simplest possibillity is
to make symlinks, of both
> > the executable and module, to pretend they are youtube-dl and the
module youyube_dl. This way,
> > also python programs that load the module could work.
> >
> > A little bit better is this little wraper. you link the exec and
module to it.
> >
> > ------------------
> > #!/usr/bin/python3
> >
> > import sys
> > from yt_dlp import *
> >
> > if __name__ == "__main__":
> >
> > args=sys.argv.copy()
> > args.pop(0)
> > args=['--compat-options','youtube-dl']+args
> >
> > main(args)
> > --------------------
> >
> >
Thanks for the script! We still haven't seen a youtube-dl release and
it's pretty clear the way that things are headed, so I've gone ahead and
prepared the package for becoming replaced by yt-dlp:
https://salsa.debian.org/debian/youtube-dl/-/commits/master
Andreas & others, any thoughts/comments on this before I upload?
Thanks,
Andres
not sure what you did. To avoid confusion. Use the wrapper as the
executable, not as the module. It doesn't work very well as a module.
"import *" in python doesn't actually import everything...
for the module directly link to yt-dlp
/usr/lib/python3/dist-packages/youtube_dl
/usr/lib/python3/dist-packages/yt_dlp