fixed issues.

This commit is contained in:
Ehtisham Sabir 2022-05-18 18:42:06 +05:00
parent 4a43765c84
commit 5df576b5a1

View File

@ -50,7 +50,7 @@ class WikimediaIE(InfoExtractor):
license = clean_html(license)
description = get_element_by_class('description', webpage)
author = self._html_search_regex('>\s*Author\s*</td>\s*<td\b[^>]*>\s*([^<]+?)\s*</td>',
author = self._html_search_regex(r'>\s*Author\s*</td>\s*<td\b[^>]*>\s*([^<]+?)\s*</td>',
webpage, 'video author', 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:', ''),