Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feeding The Source Through a Parameter #8619

Open
EnginePod opened this issue Feb 20, 2016 · 1 comment
Open

Feeding The Source Through a Parameter #8619

EnginePod opened this issue Feb 20, 2016 · 1 comment

Comments

@EnginePod
Copy link

@EnginePod EnginePod commented Feb 20, 2016

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:

  • download the source with PHP
  • run my own code (which finds embedded players like OK.RU)
  • If I find an embedded link:
    • I feed that link to youtube-dl (e.g youtube-dl -g LINK)
  • else (if I don't find an embedded link):
    • I feed the downloaded source to youtube-dl (e.g youtube-dl --source "$downloadedSource")
@EnginePod
Copy link
Author

@EnginePod EnginePod commented Feb 20, 2016

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.

dstftw added a commit that referenced this issue Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.