[youtube] Make category optional (#4442)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 11 Dec 2014 15:32:33 +0000 (16:32 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 11 Dec 2014 15:32:48 +0000 (16:32 +0100)
youtube_dl/extractor/youtube.py

index f8d5cdd5d6210477f5d286facfa52921dc5b4186..003aeaee6dd09ddf32759e4e2f6caf95f8ee3bd5 100644 (file)
@@ -866,7 +866,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
 
         m_cat_container = self._search_regex(
             r'(?s)<h4[^>]*>\s*Category\s*</h4>\s*<ul[^>]*>(.*?)</ul>',
-            video_webpage, 'categories', fatal=False)
+            video_webpage, 'categories', default=None)
         if m_cat_container:
             category = self._html_search_regex(
                 r'(?s)<a[^<]+>(.*?)</a>', m_cat_container, 'category',