Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Support for third-party information extractors #14646
Comments
|
FYI This was rejected #1185 |
|
Thanks for mentioning that. It has been more than 4 years since the previous discussion about this topic, maybe we can initiate it again. In the previous discussion the head developers were afraid, that allowing third-party extractors would lead to a lot of forks of youtube-dl. I don't see this to be an issue at all, it's rather an issue right now. If I absolutely need an information extractor for my purposes in youtube-dl, I have two options:
I understand that option 1 is absolutely the preferred way of handling this problem, but sometimes it just doesn't work out. If my pull request does not get accepted, I have no other possibility than to go for option 2. This is not really an enjoyable situation, since I always have to keep my fork of youtube-dl updated with upstream youtube-dl.
Support for third-party information extractors would mean, that pull requests for new extractors could coexist with external plugins, and users of youtube-dl could easily test these new extractors without having to know anything about the git toolchain and installing their own version of youtube-dl from the sources. Wouldn't this be beneficial for everyone? |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.10.29. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Would it be possible to add support for third-party information extractors to youtube-dl?
youtube-dl will never be able to cover all the wishes for site supports and often it takes a long time to get a new information extractor into the youtube-dl core. Wouldn't it be great, if users could easily add support for third-party information extractors?
I have something like this in my mind: A developer writes an information extractor and publishes it as a git repository. The user who wants to use these third-party information extractors, clones them all into a directory (e.g. to
/home/goggle/.youtube-dl/extractors/). Now, if the user wants to use these information extractors, they simply needs to call youtube-dl with an additional option (e.g.youtube-dl --third-party /home/goggle/.youtube-dl/extractors). youtube-dl would make sure, that third-pary information extractors would be prioritized if they cover the same_VALID_URLregex as a core information extractor. Also the error messages for third-party information extractors would need to be adapted, so that failures in third-party information extractors would not land on the official youtube-dl bug tracker.Would something like that be technically doable? What's the opinion of the main developers on this feature request?