youtube-dl: C-SPAN videos not working
Make sure you are using the latest version: run youtube-dl --version
and ensure your version is 2019.01.10. If it’s not, read this FAQ entry and update. Issues with outdated version will be rejected.
- I’ve verified and I assure that I’m running youtube-dl 2019.01.10
Before submitting an issue make sure you have:
- At least skimmed through the README, most notably the FAQ and BUGS sections
- Searched the bugtracker for similar issues including closed ones
- Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
What is the purpose of your issue?
- Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- Question
- Other
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
$ youtube-dl https://www.c-span.org/video/?456714-1/morning-hour -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://www.c-span.org/video/?456714-1/morning-hour', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.10
[debug] Git HEAD: 9115778
[debug] Python version 2.7.9 (CPython) - Linux-3.13.0-43-generic-x86_64-with-debian-jessie-sid
[debug] exe versions: ffmpeg 2.7.1, ffprobe 2.7.1
[debug] Proxy map: {}
[CSpan] 456714: Downloading webpage
[CSpan] 519407: Downloading JSON metadata
ERROR: CSpan said: Video not available at this time
Traceback (most recent call last):
File "/home/sam/cspan/env/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 793, in extract_info
ie_result = ie.extract(url)
File "/home/sam/cspan/env/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 508, in extract
ie_result = self._real_extract(url)
File "/home/sam/cspan/env/lib/python2.7/site-packages/youtube_dl/extractor/cspan.py", line 137, in _real_extract
raise ExtractorError('%s said: %s' % (self.IE_NAME, get_text_attr(data, 'error')), expected=True)
ExtractorError: CSpan said: Video not available at this time
Description of your issue, suggested solution and other information
Youtube-dl can no longer download some C-SPAN videos. I’m not sure if this is an issue with youtube-dl, or with C-SPAN itself, but videos do continue to work in the browser. I’ve also noticed that this seems to only be effecting newer videos (posted within the last few weeks). I almost wonder if it’s related to the government shutdown? In any case, thanks for taking a look!
Some videos that work:
- https://www.c-span.org/video/?456045-1/federal-school-safety-commission-report-briefing
- https://www.c-span.org/video/?456149-1/national-debt-economy
Some that don’t work:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15
Commits related to this issue
- C-SPAN videos not working #18806 fix — committed to Geremia/youtube-dl by Geremia 4 years ago
- [cspan] Extract info from jwplayer data (closes #3672, closes #3734, closes #10638, closes #13030, closes #18806, closes #23148, closes #24461, closes #26171, closes #26800, closes #27263) — committed to ThirumalaiK/youtube-dl by dstftw 4 years ago
- [cspan] Extract info from jwplayer data (closes #3672, closes #3734, closes #10638, closes #13030, closes #18806, closes #23148, closes #24461, closes #26171, closes #26800, closes #27263) — committed to jhidalgor/youtube-dl by dstftw 4 years ago
I have noticed that as well. There is an extremely easy way to get the m3u8 for all C-Span videos that you can use to play or record the video in VLC.
Go to the html source code (ctrl-U in Chrome and Firefox) for the C-Span webpage that contains the video and search “m3u8.” The playable and recordable m3u8 is right there.
You can also download the m3u8 URL in a browser. Then, open it as a text file. You’ll see several resolutions and bittrates for the video.