mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-03 17:20:13 +09:00
Update youtube_dl/extractor/wikimedia.py
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
54eec8c0b9
commit
65274df94b
@ -50,7 +50,8 @@ class WikimediaIE(InfoExtractor):
|
||||
license = clean_html(license)
|
||||
|
||||
description = get_element_by_class('description', webpage)
|
||||
author = self._html_search_regex('<td\b[Author>]*>[\n\s]([^<]+?)\s*</td>', webpage, 'video author',
|
||||
author = self._html_search_regex('>\s*Author\s*</td>\s*<td\b[^>]*>\s*([^<]+?)\s*</td>',
|
||||
webpage, 'video author', default=None)
|
||||
default=None)
|
||||
info = {'url': video_url, 'description': clean_html(description), 'ext': ext,
|
||||
'id': video_id.replace('.' + ext, ''), 'title': self._og_search_title(webpage).replace('File:', ''),
|
||||
|
Loading…
Reference in New Issue
Block a user