From 810c1a56a04fab4daa2bdf1bfe888da2e976143c Mon Sep 17 00:00:00 2001 From: Ehtisham Sabir Date: Fri, 1 Apr 2022 05:25:00 +0500 Subject: [PATCH] made changes according to request also I really appreciate help by @dirkf --- youtube_dl/extractor/wikimedia.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/youtube_dl/extractor/wikimedia.py b/youtube_dl/extractor/wikimedia.py index 0572760be..ef2536d0d 100644 --- a/youtube_dl/extractor/wikimedia.py +++ b/youtube_dl/extractor/wikimedia.py @@ -39,9 +39,7 @@ class WikimediaIE(InfoExtractor): licenze = "This " + licenze + " license." description = get_element_by_class('description', webpage) - author = self._html_search_regex(r'([^\<]*?)<\/td>', str(webpage), u"video author") - info = {} subtitles = 'https://commons.wikimedia.org/w/api.php?action=timedtext&lang=nl&title=File%3A{}' \ '&trackformat=srt'.format(compat_urlparse.quote_plus(video_id)) @@ -53,5 +51,4 @@ class WikimediaIE(InfoExtractor): info['license'] = licenze info['author'] = author info['subtitles'] = {"nl": [{"ext": "srt", "url": subtitles}]} - print("ih") return info