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

Yahoo Gyao! fails on some URLs #21071

Closed
gmarty opened this issue May 12, 2019 · 0 comments
Closed

Yahoo Gyao! fails on some URLs #21071

gmarty opened this issue May 12, 2019 · 0 comments

Comments

@gmarty
Copy link

@gmarty gmarty commented May 12, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.05.11
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--dump-pages', u'https://gyao.yahoo.co.jp/player/00722/v09390/v1000000000000008126/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.05.11
[debug] Python version 2.7.10 (CPython) - Darwin-18.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, rtmpdump 2.4
[debug] Proxy map: {}
[yahoo:gyao:player] 00722:v09390:v1000000000000008126: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 626, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description

Some URLs from Yahoo Gyao! fail.
Examples of failing URLs with the error above:
https://gyao.yahoo.co.jp/player/00722/v09390/v1000000000000008126/
https://gyao.yahoo.co.jp/player/00722/v12193/v1000000000000010763/
https://gyao.yahoo.co.jp/player/00722/v09845/v1000000000000011280/

Other URLs are working perfectly fine. Here are some examples:
https://gyao.yahoo.co.jp/player/00066/v07687/v0768700000000524117/
https://gyao.yahoo.co.jp/player/00836/v09715/v0968700000000540610/
https://gyao.yahoo.co.jp/player/00111/v08174/v0805000000000531092/

If you compare the failing URLs with the ones working, you'll notice the number after https://gyao.yahoo.co.jp/player/ is different and stands for the video provider.
00722 provider is Tôei Anime BB Premium and all their videos fail consistently. All the other providers I checked are working fine.

The video from 00722 provider can be played in a browser when circumventing geolocation restrictions. It must be something that is done differently with this provider that prevent from constructing the proper URL for the JSON metadata.

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.