jaimeMF / youtube-dl-api-server

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

Error from youtube-dl version 2014.09.14 #22

Closed ksy5662 closed 10 years ago

ksy5662 commented 10 years ago

2014.09.12 is O.K

Here is the error log.

2014-09-19 23:56:56.230 /api/info?url=http://www.youtube.com/watch?v=pKDkB9FKzs4 500 2758ms 0kb Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2 module=default version=2014-09-19 221.158.56.146 - - [19/Sep/2014:23:56:56 -0700] "GET /api/info?url=http://www.youtube.com/watch?v=pKDkB9FKzs4 HTTP/1.1" 500 264 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2" "ringtube001.appspot.com" ms=2759 cpu_ms=2383 cpm_usd=0.000400 loading_request=1 app_engine_release=1.9.11 instance=00c61b117ccce65936ec98a44aaf20cf5fbce039 D 2014-09-19 23:56:54.894 [youtube] Setting language D 2014-09-19 23:56:55.586 [youtube] Confirming age D 2014-09-19 23:56:55.679 [youtube] pKDkB9FKzs4: Downloading webpage D 2014-09-19 23:56:55.862 [youtube] pKDkB9FKzs4: Downloading video info webpage D 2014-09-19 23:56:55.980 [youtube] pKDkB9FKzs4: Extracting video information E 2014-09-19 23:56:56.221 Exception on /api/info [GET] Traceback (most recent call last): File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/gae/lib/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/gae/lib/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/gae/lib/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/gae/lib/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/gae/lib/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/youtube_dl_server/app.py", line 59, in wrapper response = f(_args, *_kargs) File "/base/data/home/apps/s~ringtube001/2014-09-19.378815092597542924/youtube_dl_server/app.py", line 84, in info 'youtube-dl.version': youtube_dl.version, AttributeError: 'module' object has no attribute 'version' I 2014-09-19 23:56:56.230 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

jaimeMF commented 10 years ago

Thanks for the report, it's fixed in version 0.1.1.

ksy5662 commented 10 years ago

Thanks a lot for your quick fix!!