Update youtube_dl/extractor/wikimedia.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
Ehtisham Sabir 2022-05-18 18:30:33 +05:00 committed by GitHub
parent 54eec8c0b9
commit 65274df94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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