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

CSPAN - KeyError: u'files' #3734

Open
isez opened this issue Sep 12, 2014 · 5 comments
Open

CSPAN - KeyError: u'files' #3734

isez opened this issue Sep 12, 2014 · 5 comments

Comments

@isez
Copy link

@isez isez commented Sep 12, 2014

Getting it on most new videos now seems like.

youtube-dl -v http://www.c-span.org/video/?321432-1/discussion-us-national-security-threats

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.c-span.org/video/?321432-1/discussion-us-national-security-threats']
[debug] Encodings: locale ISO-8859-1, fs ISO-8859-1, out ISO-8859-1, pref ISO-8859-1
[debug] youtube-dl version 2014.09.10.1
[debug] Python version 2.6.6 - Linux-3.2.13-grsec-xxxx-grs-ipv6-64-x86_64-with-debian-6.0.10
[debug] Proxy map: {}
[CSpan] 321432: Downloading webpage
[CSpan] 366211: Downloading JSON metadata
[CSpan] 366211: Downloading XML
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2014.09.10.1', 'console_scripts', 'youtube-dl')()
File "/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/init.py", line 897, in main
_real_main(argv)
File "/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/init.py", line 887, in _real_main
retcode = ydl.download(all_urls)
File "/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/YoutubeDL.py", line 1065, in download
self.extract_info(url)
File "/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/YoutubeDL.py", line 523, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/extractor/common.py", line 178, in extract
return self._real_extract(url)
File "/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/extractor/cspan.py", line 72, in _real_extract
files = data['video']['files']
KeyError: u'files'

@juancri
Copy link
Contributor

@juancri juancri commented Sep 12, 2014

It works fine for me.

On Fri, Sep 12, 2014 at 5:25 PM, isez notifications@github.com wrote:

Getting it on most new videos now seems like.

youtube-dl -v
http://www.c-span.org/video/?321432-1/discussion-us-national-security-threats

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '
http://www.c-span.org/video/?321432-1/discussion-us-national-security-threats'
]
[debug] Encodings: locale ISO-8859-1, fs ISO-8859-1, out ISO-8859-1, pref
ISO-8859-1
[debug] youtube-dl version 2014.09.10.1
[debug] Python version 2.6.6 -
Linux-3.2.13-grsec-xxxx-grs-ipv6-64-x86_64-with-debian-6.0.10
[debug] Proxy map: {}
[CSpan] 321432: Downloading webpage
[CSpan] 366211: Downloading JSON metadata
[CSpan] 366211: Downloading XML
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2014.09.10.1', 'console_scripts',
'youtube-dl')()
File
"/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/
init.py", line 897, in main

_real_main(argv) File
"/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/init.py",
line 887, in _real_main
retcode = ydl.download(all_urls)
File
"/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/YoutubeDL.py",
line 1065, in download
self.extract_info(url)
File
"/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/YoutubeDL.py",
line 523, in extract_info
ie_result = ie.extract(url)
File
"/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/extractor/common.py",
line 178, in extract
return self._real_extract(url)
File
"/usr/local/lib/python2.6/dist-packages/youtube_dl-2014.09.10.1-py2.6.egg/youtube_dl/extractor/cspan.py",
line 72, in _real_extract
files = data['video']['files']
KeyError: u'files'


Reply to this email directly or view it on GitHub
#3734.

Atte,
Juan Cristóbal Olivares

cxsoftware.com http://www.cxsoftware.com/
Skype: cxsoftware6001
Celular: +56-9 9871 7277
Central: +56-2 2348 7642

@isez
Copy link
Author

@isez isez commented Sep 12, 2014

Actually my bad, I did a clean install of 09.12 version and it works now

@pricejn2
Copy link

@pricejn2 pricejn2 commented Sep 17, 2014

@isez please close issue if resolved. thanks!

@ralexx
Copy link

@ralexx ralexx commented Nov 25, 2014

I also have this issue for several C-SPAN URIs. One attempt was successful, that terminal output pasted at bottom.

OS X 10.10.1

$ youtube-dl --version
2014.11.25
$ python --version
Python 2.7.8
$ youtube-dl "http://www.c-span.org/video/?293077-4/2008-lehman-brothers-failure-panel-4"
[CSpan] 293077: Downloading webpage
[CSpan] 222787: Downloading JSON metadata
[CSpan] 222787: Downloading XML
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 355, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 345, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1117, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 553, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 240, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/cspan.py", line 72, in _real_extract
KeyError: u'files'

Successful attempt:

$ youtube-dl "http://www.c-span.org/video/?281618-2/financial-market-regulation-practices-panel-2" -o '/Users/me/Downloads/%(title)s-%(upload_date)s.%(ext)s'
[CSpan] 281618: Downloading webpage
[CSpan] 195774: Downloading JSON metadata
[CSpan] 195774: Downloading XML
[download] Downloading playlist: Financial Market Regulation and Practices, Panel 2
[CSpan] playlist Financial Market Regulation and Practices, Panel 2: Collected 2 video ids (downloading 2 of them)
[download] Downloading video #1 of 2
[download] Destination: /Users/me/Downloads/Financial Market Regulation and Practices, Panel 2 part 1-NA.mp4
[download] 100% of 538.26MiB in 15:13
[download] Downloading video #2 of 2
[download] Destination: /Users/me/Downloads/Financial Market Regulation and Practices, Panel 2 part 2-NA.mp4
[download] 100% of 295.22MiB in 07:24
@mcepl
Copy link
Contributor

@mcepl mcepl commented Dec 19, 2014

Happened to me as well.

matej@mitmanek: ~$ youtube-dl --verbose 'http://www.c-span.org/video/?63955-1/book-discussion-creating-new-civilization'
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.c-span.org/video/?63955-1/book-discussion-creating-new-civilization']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.10.3
[debug] Python version 2.7.5 - Linux-3.10.0-210.el7.x86_64-x86_64-with-redhat-7.1-Maipo
[debug] exe versions: ffmpeg 2.3.4, ffprobe 2.3.4, rtmpdump 2.4
[debug] Proxy map: {}
[CSpan] 63955: Downloading webpage
[CSpan] 171511: Downloading JSON metadata
[CSpan] 171511: Downloading XML
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 355, in main
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 345, in _real_main
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1133, in download
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 554, in extract_info
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 242, in extract
  File "/usr/bin/youtube-dl/youtube_dl/extractor/cspan.py", line 72, in _real_extract
KeyError: u'files'
matej@mitmanek: ~$
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
5 participants
You can’t perform that action at this time.