yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
91.78k stars 7.14k forks source link

nbcsports.com "Unable to download XML" #6295

Open MarvusMedia opened 1 year ago

MarvusMedia commented 1 year ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Region

USA

Provide a description that is worded well enough to be understood

The video here plays perfectly on the website when accessed via a VPN server in the US, and doesn't require a log-in.

However, attempts to download the video, with the page open or with it closed, result in the error "Unable to download XML".

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

[debug] Command-line config: ['-F', 'https://www.nbcsports.com/video/extended-highlights-aston-villa-2-arsenal-4', '-vU']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.02.17 [a0a7c01] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 4.4-full_build-www.gyan.dev (setts), ffprobe 4.4-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1782 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2023.02.17, Current version: 2023.02.17
yt-dlp is up to date (2023.02.17)
[NBCSports] Extracting URL: https://www.nbcsports.com/video/extended-highlights-aston-villa-2-arsenal-4
[NBCSports] extended-highlights-aston-villa-2-arsenal-4: Downloading webpage
[NBCSportsVPlayer] Extracting URL: https://www.nbcsports.com/vplayer/p/BxmELC/nbcsports/select/media/9SvBG9n83EcQ?form=html&autoPlay=true
[NBCSportsVPlayer] 9SvBG9n83EcQ: Downloading webpage
[ThePlatform] Extracting URL: https://link.theplatform.com/s/BxmELC/media/9SvBG9n83EcQ?auto=true&player=v1.8%20-%20NBCS%20Main&policy=194713254
[ThePlatform] 9SvBG9n83EcQ: Downloading SMIL data
ERROR: [ThePlatform] 9SvBG9n83EcQ: Unable to download XML: Remote end closed connection without response (caused by RemoteDisconnected('Remote end closed connection without response')); 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 "yt_dlp\extractor\common.py", line 693, in extract
  File "yt_dlp\extractor\theplatform.py", line 298, in _real_extract
  File "yt_dlp\extractor\theplatform.py", line 32, in _extract_theplatform_smil
  File "yt_dlp\extractor\common.py", line 1047, in download_content
  File "yt_dlp\extractor\common.py", line 1011, in download_handle
  File "yt_dlp\extractor\adobepass.py", line 1366, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 881, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 838, in _request_webpage

  File "yt_dlp\extractor\common.py", line 820, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3726, in urlopen
  File "urllib\request.py", line 525, in open
  File "urllib\request.py", line 542, in _open
  File "urllib\request.py", line 502, in _call_chain
  File "yt_dlp\utils.py", line 1371, in http_open
  File "urllib\request.py", line 1358, in do_open
  File "http\client.py", line 1344, in getresponse
  File "http\client.py", line 307, in begin
  File "http\client.py", line 276, in _read_status
http.client.RemoteDisconnected: Remote end closed connection without response
bashonly commented 1 year ago

I cannot reproduce the issue from US IP

[NBCSports] Extracting URL: https://www.nbcsports.com/video/extended-highlights-aston-villa-2-arsenal-4
[NBCSports] extended-highlights-aston-villa-2-arsenal-4: Downloading webpage
[NBCSportsVPlayer] Extracting URL: https://www.nbcsports.com/vplayer/p/BxmELC/nbcsports/select/media/9SvBG9n83EcQ?form=html&autoPlay=true
[NBCSportsVPlayer] 9SvBG9n83EcQ: Downloading webpage
[ThePlatform] Extracting URL: https://link.theplatform.com/s/BxmELC/media/9SvBG9n83EcQ?auto=true&player=v1.8%20-%20NBCS%20Main&policy=194713254
[ThePlatform] 9SvBG9n83EcQ: Downloading SMIL data
[ThePlatform] 9SvBG9n83EcQ: Checking video URL
[ThePlatform] 9SvBG9n83EcQ: Downloading JSON metadata
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for 9SvBG9n83EcQ:
ID        EXT RESOLUTION │   FILESIZE   TBR PROTO │ VCODEC    VBR ACODEC  ABR
─────────────────────────────────────────────────────────────────────────────
http-5931 mp4 1920x1080  │ ~730.79MiB 5931k https │ unknown 5931k unknown  0k
MarvusMedia commented 1 year ago

Can you try via VPN? Even if you're already in the US, this could replicate the issue, in which case I'll need to figure out how to solve that. Maybe even the connection protocol can affect it. Thanks.