jaimeMF / youtube-dl-api-server

A youtube-dl REST API server
https://youtube-dl-api-server.readthedocs.org/
The Unlicense
364 stars 214 forks source link

Some extractors failing on GAE #21

Closed feribg closed 10 years ago

feribg commented 10 years ago

Unfortunately I faced a limitation on some of the extractors on GAE. For example the Mixcloud extractor fails with the following stack trace:

WARNING 2014-08-14 01:50:24,452 urlfetch_stub.py:482] Stripped prohibited headers from URLFetch request: ['Host'] WARNING 2014-08-14 01:50:24,523 urlfetch_stub.py:482] Stripped prohibited headers from URLFetch request: ['Host'] WARNING 2014-08-14 01:50:24,565 urlfetch_stub.py:482] Stripped prohibited headers from URLFetch request: ['Host']

and then the request just times out. On the other hand if used on non GAE installation or the command line youtube-dl utility it is working fine. Is there any easy way to get around this limitation on GAE?

jaimeMF commented 10 years ago

Thanks for the report, I have fixed the problem in youtube-dl: https://github.com/rg3/youtube-dl/commit/dbc1366b502db813a27aaa9ab2fa5148749ac659. It should work in GAE (I have only checked locally with the dev_appserver.py program) with the next version of youtube-dl.

Is there any other extractor with the same problem? Could you post some of the urls that fail?

feribg commented 10 years ago

Thanks for the fix! I havent encountered it with anything else yet, but if I do I will let you know.

jaimeMF commented 10 years ago

I have tested in GAE and it works fine, thanks again for the report.