Skip to content

Conversation

@BoyInTheSun
Copy link

@BoyInTheSun BoyInTheSun commented Apr 14, 2025

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Remove video.cnbc.com

I found Error 1016 Origin DNS error when openning https://video.cnbc.com/gallery/?video=3000503714. It's no longer available.

Add support for player.cnbc.com

Detail for #25923

Fix support for www.cnbc.com/video

I found this error when downloading from https://www.cnbc.com/video/2025/03/04/watch-cnbcs-full-interview-with-thales-chairman-and-ceo-patrice-caine.html

PS C:\Users\sunboy> youtube-dl.exe -F https://www.cnbc.com/video/2025/03/04/watch-cnbcs-full-interview-with-thales-chairman-and-ceo-patrice-caine.html --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', 'https://www.cnbc.com/video/2025/03/04/watch-cnbcs-full-interview-with-thales-chairman-and-ceo-patrice-caine.html', '--verbose']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.11.7 (CPython) - Windows-10-10.0.19045-SP0
[debug] exe versions: ffmpeg 7.1-essentials_build-www.gyan.dev, ffprobe 7.1-essentials_build-www.gyan.dev
[debug] Proxy map: {'http': 'http://127.0.0.1:10809', 'https': 'http://127.0.0.1:10809', 'ftp': 'http://127.0.0.1:10809'}
[CNBCVideo] watch-cnbcs-full-interview-with-thales-chairman-and-ceo-patrice-caine: Downloading JSON metadata
[ThePlatform] 7000368474: Downloading SMIL data
ERROR: 7000368474: Failed to parse XML  (caused by ParseError('not well-formed (invalid token): line 11, column 45')); 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.
Traceback (most recent call last):
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\common.py", line 856, in _parse_xml
    return compat_etree_fromstring(xml_string.encode('utf-8'))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\compat.py", line 2542, in compat_etree_fromstring
    return etree.XML(text, parser=etree.XMLParser(target=_TreeBuilder()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\xml\etree\ElementTree.py", line 1338, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 11, column 45
Traceback (most recent call last):
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\common.py", line 856, in _parse_xml
    return compat_etree_fromstring(xml_string.encode('utf-8'))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\compat.py", line 2542, in compat_etree_fromstring
    return etree.XML(text, parser=etree.XMLParser(target=_TreeBuilder()))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\xml\etree\ElementTree.py", line 1338, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 11, column 45

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
                ^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\theplatform.py", line 308, in _real_extract
    formats, subtitles = self._extract_theplatform_smil(smil_url, video_id)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\theplatform.py", line 38, in _extract_theplatform_smil
    meta = self._download_xml(
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\common.py", line 845, in _download_xml
    res = self._download_xml_handle(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\common.py", line 831, in _download_xml_handle
    return self._parse_xml(
           ^^^^^^^^^^^^^^^^
  File "C:\Users\sunboy\AppData\Local\Programs\Python\Python311\Lib\site-packages\youtube_dl\extractor\common.py", line 860, in _parse_xml
    raise ExtractorError(errmsg, cause=ve)
youtube_dl.utils.ExtractorError: 7000368474: Failed to parse XML  (caused by ParseError('not well-formed (invalid token): line 11, column 45')); 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants