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

[ESPN] broken with python 3.6 (works with 3.7) #26601

Closed
5 of 6 tasks
2011 opened this issue Sep 16, 2020 · 0 comments
Closed
5 of 6 tasks

[ESPN] broken with python 3.6 (works with 3.7) #26601

2011 opened this issue Sep 16, 2020 · 0 comments

Comments

@2011
Copy link

2011 commented Sep 16, 2020

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.09.14
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

$ youtube-dl -f best -v 'https://www.espn.com/nba/story/_/id/29895442/nba-players-show-no-mercy-twitter-clippers-nuggets-game-7-shocker'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--restrict-filenames', '-o', '%(title)s-%(id)s-%(uploader)s.%(ext)s', '-w', '-f', 'best', '-v', 'https://www.espn.com/nba/story/_/id/29895442/nba-players-show-no-mercy-twitter-clippers-nuggets-game-7-shocker']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.09.14
[debug] Python version 3.6.11 (CPython) - Linux-4.4.221-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.4.1
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, rtmpdump 2.4
[debug] Proxy map: {}
[ESPNArticle] nba-players-show-no-mercy-twitter-clippers-nuggets-game-7-shocker: Downloading webpage
[ESPN] 29895463: Downloading JSON metadata
[ESPN] 29895463: Downloading SMIL file
[ESPN] 29895463: Downloading f4m manifest
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/youtube-dl", line 11, in <module>
    load_entry_point('youtube-dl==2020.9.14', 'console_scripts', 'youtube-dl')()
  File "/usr/lib64/python3.6/site-packages/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2019, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/lib64/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 870, in process_ie_result
    extra_info=extra_info)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/espn.py", line 161, in _real_extract
    traverse_source(links.get('source', {}))
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/espn.py", line 125, in traverse_source
    if base_source_id else source_id)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/espn.py", line 120, in traverse_source
    extract_source(source, base_source_id)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/espn.py", line 139, in extract_source
    source_url, video_id, f4m_id=source_id, fatal=False))
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/common.py", line 1488, in _extract_f4m_formats
    fatal=fatal, data=data, headers=headers, query=query)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/common.py", line 842, in _download_xml
    expected_status=expected_status)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/common.py", line 820, in _download_xml_handle
    expected_status=expected_status)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/common.py", line 660, 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 "/usr/lib64/python3.6/site-packages/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib64/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib64/python3.6/site-packages/youtube_dl/utils.py", line 2736, in https_open
    req, **kwargs)
  File "/usr/lib64/python3.6/urllib/request.py", line 1349, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib64/python3.6/http/client.py", line 1287, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1333, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1282, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1448, in connect
    server_hostname=server_hostname)
  File "/usr/lib64/python3.6/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib64/python3.6/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/usr/lib64/python3.6/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib64/python3.6/ssl.py", line 694, in do_handshake
    match_hostname(self.getpeercert(), self.server_hostname)
  File "/usr/lib64/python3.6/ssl.py", line 327, in match_hostname
    % (hostname, ', '.join(map(repr, dnsnames))))
ssl.CertificateError: hostname 'hds.video-cdn.espn.com' doesn't match either of 'a248.e.akamai.net', '*.akamaized.net', '*.akamaihd-staging.net', '*.akamaihd.net', '*.akamaized-staging.net'

Description

Works with python 3.7 (I spent several hours testing this by upgrading to python 3.7, verifying that the URL downloads, and then re-installing youtube-dl with only python 3.6). I have reinstalled youtube-dl (for about the tenth time today) with python 3.7, and the URL downloads with no problems.

$ youtube-dl -f best -v 'https://www.espn.com/nba/story/_/id/29895442/nba-players-show-no-mercy-twitter-clippers-nuggets-game-7-shocker'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--restrict-filenames', '-o', '%(title)s-%(id)s-%(uploader)s.%(ext)s', '-w', '-f', 'best', '-v', 'https://www.espn.com/nba/story/_/id/29895442/nba-players-show-no-mercy-twitter-clippers-nuggets-game-7-shocker']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.09.14
[debug] Python version 3.7.8 (CPython) - Linux-4.4.221-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.4.1
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, rtmpdump 2.4
[debug] Proxy map: {}
[ESPNArticle] nba-players-show-no-mercy-twitter-clippers-nuggets-game-7-shocker: Downloading webpage
[ESPN] 29895463: Downloading JSON metadata
[ESPN] 29895463: Downloading SMIL file
[ESPN] 29895463: Downloading f4m manifest
WARNING: Unable to download f4m manifest: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'hds.video-cdn.espn.com'. (_ssl.c:1091)>
[ESPN] 29895463: Downloading m3u8 information
[debug] Invoking downloader on 'https://media.video-origin.espn.com/espnvideo/2020/0915/dm_200915_nba_sas_on_nuggets/dm_200915_nba_sas_on_nuggets.mp4'
[download] Destination: Stephen_A._stunned_by_Nuggets_Game_7_win-29895463-NA.mp4
[download] 100% of 138.66MiB in 00:05
@dstftw dstftw closed this as completed in f8c7bed Sep 17, 2020
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

No branches or pull requests

1 participant