Browse Source

[motherless] Make categories optional (Closes #8654)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
43479d9e9d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/motherless.py

+ 6
- 1
youtube_dl/extractor/motherless.py View File

@ -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(',')]


Loading…
Cancel
Save