From: Philipp Hagemeister Date: Thu, 11 Dec 2014 15:32:33 +0000 (+0100) Subject: [youtube] Make category optional (#4442) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=624dcebff617d3e995d1f0ddb27d604a881b2de2;p=youtube-dl [youtube] Make category optional (#4442) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index f8d5cdd5d..003aeaee6 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -866,7 +866,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): m_cat_container = self._search_regex( r'(?s)]*>\s*Category\s*\s*]*>(.*?)', - video_webpage, 'categories', fatal=False) + video_webpage, 'categories', default=None) if m_cat_container: category = self._html_search_regex( r'(?s)(.*?)', m_cat_container, 'category',