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

Test BiliBiliBangumiIE failed! #4407

Closed
9 tasks done
xmduhan opened this issue Jul 21, 2022 · 1 comment
Closed
9 tasks done

Test BiliBiliBangumiIE failed! #4407

xmduhan opened this issue Jul 21, 2022 · 1 comment
Labels
invalid This doesn't seem right site-bug Issue with a specific website

Comments

@xmduhan
Copy link

xmduhan commented Jul 21, 2022

Checklist

Region

China

Provide a description that is worded well enough to be understood

I tested url in the test case of BiliBiliBangumiIE and it failed.

438 class BiliBiliBangumiIE(InfoExtractor):
439 _VALID_URL = r'https?://bangumi.bilibili.com/anime/(?P\d+)'
440
441 IE_NAME = 'bangumi.bilibili.com'
442 IE_DESC = 'BiliBili番剧'
443
444 _TESTS = [{
445 'url': 'http://bangumi.bilibili.com/anime/1869', # ********* The URL **************
446 'info_dict': {
447 'id': '1869',
448 'title': '混沌武士',
449 'description': 'md5:6a9622b911565794c11f25f81d6a97d2',
450 },
451 'playlist_count': 26,

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

$ yt-dlp -vU 'http://bangumi.bilibili.com/anime/1869'
[debug] Command-line config: ['-vU', 'http://bangumi.bilibili.com/anime/1869']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.07.18 [135f05e]
[debug] Python 3.10.4 (CPython 64bit) - Linux-5.15.0-41-generic-x86_64-with-glibc2.35 (glibc 2.35)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {'https': 'http://192.168.2.1:1081', 'http': 'http://192.168.2.1:1081'}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.07.18, Current version: 2022.07.18
yt-dlp is up to date (2022.07.18)
[debug] [bangumi.bilibili.com] Extracting URL: http://bangumi.bilibili.com/anime/1869
[bangumi.bilibili.com] 1869: Downloading JSON metadata
ERROR: [bangumi.bilibili.com] 1869: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 644, in extract
    ie_result = self._real_extract(url)
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/bilibili.py", line 485, in _real_extract
    season_info = self._download_json(
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1004, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 968, in download_handle
    res = self._download_webpage_handle(
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 838, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 795, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 777, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
  File "/home/duhan/source/bbgame/.pygame/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3639, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
@xmduhan xmduhan added site-bug Issue with a specific website triage Untriaged issue labels Jul 21, 2022
@lockmatrix
Copy link
Contributor

http://bangumi.bilibili.com/anime/1869 not exists anymore.
#4221 fix this

@pukkandan pukkandan added invalid This doesn't seem right and removed triage Untriaged issue labels Jul 21, 2022
@pukkandan pukkandan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

3 participants