diff options
author | Philipp Hagemeister <[email protected]> | 2014-07-21 13:03:18 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-07-21 13:03:19 +0200 |
commit | 6f5342a201e2568ce91454d96281165c39dae16e (patch) | |
tree | e4da04e6be5368ea507a8695c9ebf6c1318f0d18 /youtube_dl | |
parent | 264a7044f59373291bae6a662b9173d55a4b9925 (diff) | |
download | youtube-dl-6f5342a201e2568ce91454d96281165c39dae16e.tar.gz youtube-dl-6f5342a201e2568ce91454d96281165c39dae16e.zip |
[cnet] Fix title extraction
URLs are still missing
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/cnet.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cnet.py b/youtube_dl/extractor/cnet.py index a94f42571..710d5009b 100644 --- a/youtube_dl/extractor/cnet.py +++ b/youtube_dl/extractor/cnet.py @@ -43,7 +43,11 @@ class CNETIE(InfoExtractor): raise ExtractorError('Cannot find video data') video_id = vdata['id'] - title = vdata['headline'] + title = vdata.get('headline') + if title is None: + title = vdata.get('title') + if title is None: + raise ExtractorError('Cannot find title!') description = vdata.get('dek') thumbnail = vdata.get('image', {}).get('path') author = vdata.get('author') |