projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0da50d
)
[motherless] Make categories optional (Closes #8654)
author
Sergey M․
<dstftw@gmail.com>
Wed, 24 Feb 2016 18:36:14 +0000
(
00:36
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 24 Feb 2016 18:36:14 +0000
(
00:36
+0600)
youtube_dl/extractor/motherless.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/motherless.py
b/youtube_dl/extractor/motherless.py
index 97d5da626a7a5d2555ac3107eb89d1a4fd11b510..b3bfcac9e0cac1b4ece2004e0875e0878b46d6c0 100644
(file)
--- a/
youtube_dl/extractor/motherless.py
+++ b/
youtube_dl/extractor/motherless.py
@@
-54,6
+54,11
@@
class MotherlessIE(InfoExtractor):
'thumbnail': 're:http://.*\.jpg',
'age_limit': 18,
}
+ },
+ {
+ # no keywords
+ 'url': 'http://motherless.com/8B4BBC1',
+ 'only_matching': True,
}
]
@@
-86,7
+91,7
@@
class MotherlessIE(InfoExtractor):
r'"thumb-member-username">\s+<a href="/m/([^"]+)"',
webpage, 'uploader_id')
- categories = self._html_search_meta('keywords', webpage)
+ categories = self._html_search_meta('keywords', webpage
, default=None
)
if categories:
categories = [cat.strip() for cat in categories.split(',')]