From: Sergey M․ Date: Thu, 16 Jul 2015 18:40:04 +0000 (+0600) Subject: [npo] Allow missing description X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=536b0700b03f0b29a1025be0b7753253bd627d6b;p=youtube-dl [npo] Allow missing description --- diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index 91adb23f0..e733d96f6 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -237,7 +237,7 @@ class NPOIE(NPOBaseIE): # prefer aflevering_titel if any since titel may be too generic, e.g. # http://tegenlicht.vpro.nl/afleveringen/2014-2015/access-to-africa.html 'title': metadata.get('aflevering_titel') or metadata['titel'], - 'description': metadata['info'], + 'description': metadata.get('info'), 'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'], 'upload_date': unified_strdate(metadata.get('gidsdatum')), 'duration': parse_duration(metadata.get('tijdsduur')),