Browse Source

[youtube] Make category optional (#4442)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
624dcebff6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/youtube.py

+ 1
- 1
youtube_dl/extractor/youtube.py View 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',


Loading…
Cancel
Save