From: Yen Chi Hsuan Date: Wed, 22 Jul 2015 15:25:32 +0000 (+0800) Subject: [lecture2go] Make optional fields non-fatal X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=40101dc311909523852a88ba69df76be9b6bc920;p=youtube-dl [lecture2go] Make optional fields non-fatal --- diff --git a/youtube_dl/extractor/lecture2go.py b/youtube_dl/extractor/lecture2go.py index a2f9d5c54..40a3d2346 100644 --- a/youtube_dl/extractor/lecture2go.py +++ b/youtube_dl/extractor/lecture2go.py @@ -45,7 +45,8 @@ class Lecture2GoIE(InfoExtractor): self._sort_formats(formats) - creator = self._html_search_regex(r']+id="description">([^<]+)', webpage, 'creator') + creator = self._html_search_regex( + r']+id="description">([^<]+)', webpage, 'creator', fatal=False) duration = parse_duration(self._html_search_regex( r'Duration:\s*\s*]*>([^<]+)', webpage, 'duration', fatal=False)) view_count = int_or_none(self._html_search_regex(