[cnet] Fix title extraction

URLs are still missing
pull/8/head
Philipp Hagemeister 2014-07-21 13:03:18 +02:00
rodzic 264a7044f5
commit 6f5342a201
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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')