aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-22 23:25:32 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-22 23:25:32 +0800
commit40101dc311909523852a88ba69df76be9b6bc920 (patch)
tree8f4cf034186fe2caa510290919978741707d495f /youtube_dl/extractor
parente9c6deffee26db40992293b3055df31804ca7e12 (diff)
[lecture2go] Make optional fields non-fatal
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/lecture2go.py3
1 files changed, 2 insertions, 1 deletions
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'<div[^>]+id="description">([^<]+)</div>', webpage, 'creator')
+ creator = self._html_search_regex(
+ r'<div[^>]+id="description">([^<]+)</div>', webpage, 'creator', fatal=False)
duration = parse_duration(self._html_search_regex(
r'Duration:\s*</em>\s*<em[^>]*>([^<]+)</em>', webpage, 'duration', fatal=False))
view_count = int_or_none(self._html_search_regex(