diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-06-26 16:57:14 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-06-26 16:57:14 +0700 |
commit | 88d9f6c0c4c3d1d2179ee4fe0af560f500e62579 (patch) | |
tree | 82ae92667a9a084dbc3b83d96639c33ef00e0258 /youtube_dl/extractor/common.py | |
parent | 3c9c088f9c51cce86d3df878feba1884c0234df5 (diff) |
[utils] Add support for name list in _html_search_meta
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 5a2603b50..4eda4e2ea 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -749,10 +749,12 @@ class InfoExtractor(object): return self._og_search_property('url', html, **kargs) def _html_search_meta(self, name, html, display_name=None, fatal=False, **kwargs): + if not isinstance(name, (list, tuple)): + name = [name] if display_name is None: - display_name = name + display_name = name[0] return self._html_search_regex( - self._meta_regex(name), + [self._meta_regex(n) for n in name], html, display_name, fatal=fatal, group='content', **kwargs) def _dc_search_uploader(self, html): |