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

ThePlatform: MSO login not working, cnbc.com falls back to generic extractor #22890

Open
hansgerig opened this issue Oct 29, 2019 · 0 comments
Open

Comments

@hansgerig
Copy link

@hansgerig hansgerig commented Oct 29, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.10.29
  • 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

PASTE VERBOSE LOG HERE
youtube-dl -v "http://player.theplatform.com/p/HNK2IC/8Mnloa_vQ1_x/select/media/guid/2304981409/4017204"
[debug] System config: []
[debug] User config: [u'-o', u'%(title)s.%(ext)s', u'--ap-mso', u'DTV', u'--ap-username', u'PRIVATE', u'--ap-password', u'PRIVATE']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://player.theplatform.com/p/HNK2IC/8Mnloa_vQ1_x/select/media/guid/2304981409/4017204']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.29
[debug] Python version 2.7.13 (CPython) - Linux-4.4.180-102-default-x86_64-with-SuSE-42.3-x86_64
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, rtmpdump 2.4
[debug] Proxy map: {}
[ThePlatform] 4017204: Downloading webpage
[ThePlatform] 4017204: Downloading SMIL data
ERROR: This content requires a valid, unexpired auth token.
Traceback (most recent call last):
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/theplatform.py", line 305, in _real_extract
    formats, subtitles = self._extract_theplatform_smil(smil_url, video_id)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/theplatform.py", line 52, in _extract_theplatform_smil
    error_element.attrib['abstract'], expected=True)

youtube-dl -v http://www.cnbc.com/live-tv/jay-lenos-garage/full-episode/tough-enough/1594654787816
[debug] System config: []
[debug] User config: [u'-o', u'%(title)s.%(ext)s', u'--ap-mso', u'DTV', u'--ap-username', u'PRIVATE', u'--ap-password', u'PRIVATE']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.cnbc.com/live-tv/jay-lenos-garage/full-episode/tough-enough/1594654787816']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.29
[debug] Python version 2.7.13 (CPython) - Linux-4.4.180-102-default-x86_64-with-SuSE-42.3-x86_64
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 1594654787816: Requesting header
WARNING: Could not send HEAD request to http://www.cnbc.com/live-tv/jay-lenos-garage/full-episode/tough-enough/1594654787816: HTTP Error 404: Not Found
[generic] 1594654787816: Downloading webpage
WARNING: Falling back on generic information extractor.
[generic] 1594654787816: Extracting information
ERROR: Unsupported URL: http://www.cnbc.com/live-tv/jay-lenos-garage/full-episode/tough-enough/1594654787816
Traceback (most recent call last):
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2373, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/home/user/bin/youtube-dl/youtube_dl/compat.py", line 2551, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/home/user/bin/youtube-dl/youtube_dl/compat.py", line 2540, in _XML
    parser.feed(text)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1653, in feed
    self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 8, column 339
Traceback (most recent call last):
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3354, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.cnbc.com/live-tv/jay-lenos-garage/full-episode/tough-enough/1594654787816

Description

WRITE DESCRIPTION HERE
I'm trying to download videos from cnbc.com. When I pass the URL of the page with the video to youtube-dl e.g. "http://www.cnbc.com/live-tv/jay-lenos-garage/full-episode/tough-enough/1594654787816" it falls back to the generic extractor instead of using cnbc.py. So I tried the video URL in the page, e.g. "http://player.theplatform.com/p/HNK2IC/8Mnloa_vQ1_x/select/media/guid/2304981409/4017204" then it says "This content requires a valid, unexpired auth token."

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.