projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9684f17
)
[youtube] Make category optional (#4442)
author
Philipp Hagemeister
<phihag@phihag.de>
Thu, 11 Dec 2014 15:32:33 +0000
(16:32 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Thu, 11 Dec 2014 15:32:48 +0000
(16:32 +0100)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index f8d5cdd5d6210477f5d286facfa52921dc5b4186..003aeaee6dd09ddf32759e4e2f6caf95f8ee3bd5 100644
(file)
--- 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)<h4[^>]*>\s*Category\s*</h4>\s*<ul[^>]*>(.*?)</ul>',
- video_webpage, 'categories',
fatal=Fals
e)
+ video_webpage, 'categories',
default=Non
e)
if m_cat_container:
category = self._html_search_regex(
r'(?s)<a[^<]+>(.*?)</a>', m_cat_container, 'category',