ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131k stars 9.9k forks source link

Feeding The Source Through a Parameter #8619

Open EnginePod opened 8 years ago

EnginePod commented 8 years ago

I'm trying to add support for embedded video players, but I want to avoid more requests than I need to make (I'll explain more about what I mean below). Take this page for example: http://www.animez.tv/magi-the-kingdom-of-magic-25-bolum-final/

If you feed the link into youtube-dl then it won't find anything even though it supports OK.RU, now if I manually copy the OK.RU link then it works just fine.

I write PHP so it's difficult for me to contribute or change the code since it's written in Python. Would it be possible to add a parameter which contains the source code of the page?

This way I would be able to:

EnginePod commented 8 years ago

I should also add that embedded players isn't the only thing that I would use this for. I sometimes save articles and text-based tutorials to my computer and I could add support for them in PHP before feeding them to youtube-dl.