diff options
author | Elan Ruusamäe <glen@pld-linux.org> | 2019-01-01 18:56:05 +0200 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2019-01-01 23:56:05 +0700 |
commit | d226c560a6250d03ff5f27d5b078f894d448a0b4 (patch) | |
tree | d81cfb1ad4e3521f8fba2dd80bb02619695684c4 /youtube_dl/extractor/wimp.py | |
parent | 8437f5089f2fac85a249c4368c2ea1415955d8b0 (diff) |
Refactor code to use url_result
Diffstat (limited to 'youtube_dl/extractor/wimp.py')
-rw-r--r-- | youtube_dl/extractor/wimp.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/wimp.py b/youtube_dl/extractor/wimp.py index 3dab9145b..ea234e3c5 100644 --- a/youtube_dl/extractor/wimp.py +++ b/youtube_dl/extractor/wimp.py @@ -40,11 +40,7 @@ class WimpIE(InfoExtractor): r'data-id=["\']([0-9A-Za-z_-]{11})'), webpage, 'video URL', default=None) if youtube_id: - return { - '_type': 'url', - 'url': youtube_id, - 'ie_key': YoutubeIE.ie_key(), - } + return self.url_result(youtube_id, YoutubeIE.ie_key()) info_dict = self._extract_jwplayer_data( webpage, video_id, require_title=False) |