diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-25 00:36:14 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-25 00:36:14 +0600 |
commit | 43479d9e9df3aa4a0c919bd1b5ff74d53095cac7 (patch) | |
tree | 901e49a6cfb0139e5a56e58dfb803522243ab150 /youtube_dl/extractor | |
parent | c0da50d2b2ba75e5d497caa8805ebac49845f168 (diff) |
[motherless] Make categories optional (Closes #8654)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/motherless.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/motherless.py b/youtube_dl/extractor/motherless.py index 97d5da626..b3bfcac9e 100644 --- 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(',')] |