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

error failed #54

Closed funfarooq closed 7 years ago

funfarooq commented 7 years ago

for most of the videos it gives error saying { "error": "ERROR: Signature extraction failed: Traceback (most recent call last):\n File \"/base/data/home/apps/s~youtube-dl/0-3.396513968021508387/gae/lib/youtube_dl/extractor/youtube.py\", line 1005, in _decrypt_signature\n video_id, player_url, s\n File \"/base/data/home/apps/s~youtube-dl/0-3.396513968021508387/gae/lib/youtube_dl/extractor/youtube.py\", line 919, in _extract_signature_function\n errnote='Download of %s failed' % player_url)\n File \"/base/data/home/apps/s~youtube-dl/0-3.396513968021508387/gae/lib/youtube_dl/extractor/common.py\", line 516, in _download_webpage\n res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)\n File \"/base/data/home/apps/s~youtube-dl/0-3.396513968021508387/gae/lib/youtube_dl/extractor/common.py\", line 423, in _download_webpage_handle\n urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)\n File \"/base/data/home/apps/s~youtube-dl/0-3.396513968021508387/gae/lib/youtube_dl/extractor/common.py\", line 403, in _request_webpage\n return self._downloader.urlopen(url_or_request)\n File \"/base/data/home/apps/s~youtube-dl/0-3.396513968021508387/gae/lib/youtube_dl/YoutubeDL.py\", line 2001, in urlopen\n return self._opener.open(req, timeout=self._socket_timeout)\n File \"/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py\", line 396, in open\n protocol = req.get_type()\n File \"/base/data/home/runtimes/python27/python27_dist/lib/python2.7/urllib2.py\", line 258, in get_type\n raise ValueError, \"unknown url type: %s\" % self.__original\nValueError: unknown url type: /yts/jsbin/player-en_US-vflqOi6vK/base.js\n (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflqOi6vK/base.js',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output." }

where as same video work on youtube-dl may be the code inside has to be updated with youtube-dl could you please update the same

docsuleman commented 7 years ago

please update your youtube-dl to latest version.

jaimeMF commented 7 years ago

I have updated the youtube-dl version in the test server, but for your projects you should deploy your own server.

funfarooq commented 7 years ago

so the source code available in github is the latest version of it

On Sun, Feb 26, 2017 at 4:26 AM, Jaime Marquínez Ferrándiz < notifications@github.com> wrote:

I have updated the youtube-dl version in the test server, but for your projects you should deploy your own server.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaimeMF/youtube-dl-api-server/issues/54#issuecomment-282518713, or mute the thread https://github.com/notifications/unsubscribe-auth/AKu3NRyaBw4U6jgbqRlfBN-GOy-6aJHCks5rgLGugaJpZM4MJ_1U .

-- Farooq shaik mohammadiya technologies

funfarooq commented 7 years ago

check this out http://youtube-dl.appspot.com/api/info?url=http://www.youtube.com/watch?v=zI2MGGTMHco its giving 4500 urls in the outpust string

On Mon, Feb 27, 2017 at 8:36 AM, Farooq Shiak shiakfarooq1@gmail.com wrote:

so the source code available in github is the latest version of it

On Sun, Feb 26, 2017 at 4:26 AM, Jaime Marquínez Ferrándiz < notifications@github.com> wrote:

I have updated the youtube-dl version in the test server, but for your projects you should deploy your own server.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaimeMF/youtube-dl-api-server/issues/54#issuecomment-282518713, or mute the thread https://github.com/notifications/unsubscribe-auth/AKu3NRyaBw4U6jgbqRlfBN-GOy-6aJHCks5rgLGugaJpZM4MJ_1U .

-- Farooq shaik mohammadiya technologies

-- Farooq shaik mohammadiya technologies

jaimeMF commented 7 years ago

It works fine for me.

funfarooq commented 7 years ago

checked just now giving 4500 url results

On Mon, Feb 27, 2017 at 1:23 PM, Jaime Marquínez Ferrándiz < notifications@github.com> wrote:

It works fine for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaimeMF/youtube-dl-api-server/issues/54#issuecomment-282650578, or mute the thread https://github.com/notifications/unsubscribe-auth/AKu3NatOXpFb9eTZNNB9q9QqSEwphCMLks5rgoDggaJpZM4MJ_1U .

-- Farooq shaik mohammadiya technologies

jaimeMF commented 7 years ago

Post some output, otherwise I can't debug it.

funfarooq commented 7 years ago

i was not able to paste the error i did but git hub rejected mail i m attaching text file check​ error https://drive.google.com/file/d/0BxbDvEW-4ss8cXBCSFNqeHV1Vjg/view?usp=drive_web

On Mon, Feb 27, 2017 at 1:53 PM, Jaime Marquínez Ferrándiz < notifications@github.com> wrote:

Post some output, otherwise I can't debug it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaimeMF/youtube-dl-api-server/issues/54#issuecomment-282656004, or mute the thread https://github.com/notifications/unsubscribe-auth/AKu3NYijnRlhUg9j7tWiUX6xbBNB3vOpks5rgogJgaJpZM4MJ_1U .

-- Farooq shaik mohammadiya technologies

funfarooq commented 7 years ago

hey test server is up now man its working fine .

could you do me a favour man. i am not able to configure GAE man.

if possible i will share you acess to GAE project man could you deploy it for me.

On Mon, Feb 27, 2017 at 3:14 PM, Farooq Shiak shiakfarooq1@gmail.com wrote:

i was not able to paste the error i did but git hub rejected mail i m attaching text file check​ error https://drive.google.com/file/d/0BxbDvEW-4ss8cXBCSFNqeHV1Vjg/view?usp=drive_web

On Mon, Feb 27, 2017 at 1:53 PM, Jaime Marquínez Ferrándiz < notifications@github.com> wrote:

Post some output, otherwise I can't debug it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaimeMF/youtube-dl-api-server/issues/54#issuecomment-282656004, or mute the thread https://github.com/notifications/unsubscribe-auth/AKu3NYijnRlhUg9j7tWiUX6xbBNB3vOpks5rgogJgaJpZM4MJ_1U .

-- Farooq shaik mohammadiya technologies

-- Farooq shaik mohammadiya technologies

docsuleman commented 7 years ago

funfaroorq.. GAE give url which are country restricted. they work for some people and for some other they dont.. host your server on ipv6 enabled VPS and you will be fine.. the code is just fine and everything is working. one more thing u can do is to change the url from rz--xyz.googlevideo.com to redirector.googlevideo.com. this way it remove country restriction. but it doesnt work every time.

funfarooq commented 7 years ago

https://github.com/jaimeMF/youtube-dl-api-server its 9 months old its not working source code is not working any more

On Wed, Mar 1, 2017 at 5:48 PM, docsuleman notifications@github.com wrote:

funfaroorq.. GAE give url which are country restricted. they work for some people and for some other they dont.. host your server on ipv6 enabled VPS and you will be fine.. the code is just fine and everything is working. one more thing u can do is to change the url from rz--xyz.googlevideo.com to redirector.googlevideo.com. this way it remove country restriction. but it doesnt work every time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jaimeMF/youtube-dl-api-server/issues/54#issuecomment-283325557, or mute the thread https://github.com/notifications/unsubscribe-auth/AKu3NVm2_xYJlMXmRdzOL1JNlmtHgKbEks5rhWIcgaJpZM4MJ_1U .

-- Farooq shaik mohammadiya technologies

jaimeMF commented 7 years ago

@funfarooq It works fine for me, open a new issue with the exact problem you have.