aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ted.py
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@pld-linux.org>2019-01-01 18:56:05 +0200
committerSergey M <dstftw@gmail.com>2019-01-01 23:56:05 +0700
commitd226c560a6250d03ff5f27d5b078f894d448a0b4 (patch)
treed81cfb1ad4e3521f8fba2dd80bb02619695684c4 /youtube_dl/extractor/ted.py
parent8437f5089f2fac85a249c4368c2ea1415955d8b0 (diff)
Refactor code to use url_result
Diffstat (limited to 'youtube_dl/extractor/ted.py')
-rw-r--r--youtube_dl/extractor/ted.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py
index f9b6aa48f..d3e4205f5 100644
--- a/youtube_dl/extractor/ted.py
+++ b/youtube_dl/extractor/ted.py
@@ -203,10 +203,8 @@ class TEDIE(InfoExtractor):
ext_url = None
if service.lower() == 'youtube':
ext_url = external.get('code')
- return {
- '_type': 'url',
- 'url': ext_url or external['uri'],
- }
+
+ return self.url_result(ext_url or external['uri'])
resources_ = player_talk.get('resources') or talk_info.get('resources')