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

Can't download video on CCTV site #9299

Closed
10 of 11 tasks
colinyn428 opened this issue Feb 26, 2024 · 1 comment · Fixed by #9325
Closed
10 of 11 tasks

Can't download video on CCTV site #9299

colinyn428 opened this issue Feb 26, 2024 · 1 comment · Fixed by #9325
Labels
site-bug Issue with a specific website

Comments

@colinyn428
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

China

Example URLs

https://news.cctv.com/2024/02/21/ARTIcU5tKIOIF2myEGCATkLo240221.shtml

Provide a description that is worded well enough to be understood

ERROR: [CCTV] ARTIcU5tKIOIF2myEGCATkLo240221: Unable to extract video id;

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

yt-dlp -vU https://news.cctv.com/2024/02/21/ARTIcU5tKIOIF2myEGCATkLo240221.shtml
[debug] Command-line config: ['-vU', 'https://news.cctv.com/2024/02/21/ARTIcU5tKIOIF2myEGCATkLo240221.shtml']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (zip)
[debug] Python 3.8.5 (CPython x86_64 64bit) - macOS-10.16-x86_64-i386-64bit (OpenSSL 1.1.1g  21 Apr 2020)
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Optional libraries: sqlite3-3.33.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1798 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2023.12.30 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[CCTV] Extracting URL: https://news.cctv.com/2024/02/21/ARTIcU5tKIOIF2myEGCATkLo240221.shtml
[CCTV] ARTIcU5tKIOIF2myEGCATkLo240221: Downloading webpage
ERROR: [CCTV] ARTIcU5tKIOIF2myEGCATkLo240221: Unable to extract video id; 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 "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 718, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/cctv.py", line 129, in _real_extract
    video_id = self._search_regex(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1266, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
@colinyn428 colinyn428 added site-request Request to support a new website triage Untriaged issue labels Feb 26, 2024
@bashonly bashonly added site-bug Issue with a specific website and removed site-request Request to support a new website labels Feb 26, 2024
@src-tinkerer
Copy link
Contributor

src-tinkerer commented Feb 29, 2024

Looks like no regex is getting matched for the video id:

videoCenterId: "5c846c0518444308ba32c4159df3b3e0"

Will make a PR

@bashonly bashonly removed the triage Untriaged issue label Mar 2, 2024
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 2024
Closes yt-dlp#9299
Authored by: src-tinkerer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants