Re:Youtube-dl GitHub Template
by TomJansen on Sunday October 25, 2020 @09:59AM
(#24886300)
I think this is best strategy. However, how would you download plugins then? Make a whole package manager for handling youtube-dl plugins?
[ Parent
| on HN ]
Re:Youtube-dl GitHub Template
by Retr0spectrum on Sunday October 25, 2020 @10:00AM
(#24886315)
That would be ideal, however, you could just re-use the existing `pip` infrastructure.
e.g. pip install wvdl-plugin-youtube
Re:Youtube-dl GitHub Template
by Wowfunhappy on Sunday October 25, 2020 @10:12AM
(#24886407)
Notably, youtube-dl is currently offered as a static binary that doesn't require Python to be installed. It would be a shame to loose that.
Re:Youtube-dl GitHub Template
by Retr0spectrum on Sunday October 25, 2020 @10:14AM
(#24886432)
Presumably that's a blob that bundles the python runtime, pip dependencies, and ytdl itself? You could do the same thing, with the various "plugins" added to the pip dependency list.
Re:Youtube-dl GitHub Template
by Wowfunhappy on Sunday October 25, 2020 @10:20AM
(#24886476)
...good point, not sure what I was thinking there. I'm pretty sure it's just pyinstaller, which can certainly handle bundling dependencies.