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.
list supported domains #7090
list supported domains #7090
Comments
|
That is not possible and here is why. |
|
As i see through the code, every extractor has a _VALID_URL variable. |
|
Brute example of 10 supported sites (if not, bugreport them!):
? |
|
If you want any incomplete list, why not just hardcode those 10 lines? I'm assuming that you really do not want any incomplete list, but instead, want to test whether a URL could be supported by youtube-dl. That is quite simple. |
|
I pasted 10 lines just to not flood the message. Use case is: So i tried to do the opposite; using ffmpeg first, and if it failed, then fallback to ytdl. The only way i could think to really speed up things (at least most of the times) is to know in advance if a site is (at least probably) supported by ytdl, so that on those sites i can first try ytdl, then ffmpeg; and do the opposite if i think the site is not supported. By now i managed to create an incredibly brute and hacky command full of grep,sed,sort,awk that scans the youtube-dl code and creates a list of supported domains, and yes, i've hardcoded it into my mpv frontend code. See the mess: ..it even works, but i'll have to regenerate the list everytime youtube-dl is updated with new extractors. |
|
here's the answer: #4503 |
I'm writing a gui to mpv.
When using youtube-dl via mpv, trying to play a network stream without knowing in advance if it supported by youtube-dl or not , and so activating the ytdl hook on mpv may slow down the process (expecially on slow machines) of starting the play.
Is there a way to show a list of domains supported by youtube-dl so that a simple string match could be done in advance and choosing to use or not the ytdl hook within mpv?
--list-extractors does not show domains.