News for hackers. Stuff that matters.
Re:Yt-dlp – A YouTube-dl fork with additional features and f... by polote on Thursday August 26, 2021 @04:57PM (#28320648)
Why don't they split youtube-dl in two parts:

- The extractors part (all the scrappers basically)

- The cli tool

What would be wonderful is that the extractors part is splitted out, so that anyone can use it without using youtube-dl. That would be much easier to update it too, each extractor is independent, so it is only a question, does this scrapper (extractor) works or not.

The next step would be to have a multi-language format to describe a scrapper, instead of being coded in Python. But no idea if this is possible or maybe that would make things much more complex

Re:Yt-dlp – A YouTube-dl fork with additional features and f... by FiloSottile on Thursday August 26, 2021 @05:27PM (#28321054)
That is mostly already the case, you can invoke the extractors through the Python API or through the CLI and do the download yourself.

Extractors regularly require custom logic, so they can’t be described in anything else than a programming language.

Re:Yt-dlp – A YouTube-dl fork with additional features and f... by polote on Thursday August 26, 2021 @05:52PM (#28321410)
Being two different projects has advantages, especially when one part (need to) moves much faster.

The fact that some requires custom logic doesn't prove that you need a programming language, it is just custom logic compared to the standard framework.

Re:Yt-dlp – A YouTube-dl fork with additional features and f... by colejohnson66 on Thursday August 26, 2021 @08:37PM (#28322930)
If you’re implementing custom logic, why not just make it easy on yourself and use a proper programming language. Trying to invent custom logic systems gives us cmake.
Re:Yt-dlp – A YouTube-dl fork with additional features and f... by aexl on Thursday August 26, 2021 @10:02PM (#28323509)
I have proposed this some years ago (https://github.com/ytdl-org/youtube-dl/issues/14646), but it didn't get much attention from the maintainers. It has been previously rejected in 2013 already (https://github.com/ytdl-org/youtube-dl/issues/1185).
Re:Yt-dlp – A YouTube-dl fork with additional features and f... by colethedj on Friday August 27, 2021 @02:26AM (#28324884)
yt-dlp does support "3rd party extractors" (in the form of plugins): https://github.com/yt-dlp/yt-dlp#plugins