From: Philipp Hagemeister Date: Mon, 25 Nov 2013 01:02:34 +0000 (+0100) Subject: [viki] Make uploader field optional (#1813) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1fb2bcbbf748e07d05f98110cc27d440506a9b77;p=youtube-dl [viki] Make uploader field optional (#1813) --- diff --git a/youtube_dl/extractor/viki.py b/youtube_dl/extractor/viki.py index 7b3a58de8..cd986a749 100644 --- a/youtube_dl/extractor/viki.py +++ b/youtube_dl/extractor/viki.py @@ -34,11 +34,12 @@ class VikiIE(SubtitlesInfoExtractor): description = self._og_search_description(webpage) thumbnail = self._og_search_thumbnail(webpage) - uploader = self._html_search_regex( - r'Broadcast Network: \s*([^<]*)<', webpage, - u'uploader') - if uploader is not None: - uploader = uploader.strip() + uploader_m = re.search( + r'Broadcast Network: \s*([^<]*)<', webpage) + if uploader_m is None: + uploader = None + else: + uploader = uploader.group(1).strip() rating_str = self._html_search_regex( r'Rating: \s*([^<]*)<', webpage,