From de6c51e88eb61b49a95ccfcfa82547c2172eb52b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Fri, 18 Mar 2016 22:43:07 +0600 Subject: [PATCH] [extractor/generic] Fix direct link semantics --- youtube_dl/extractor/generic.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index a2e7ba5ad..5649e26da 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1277,10 +1277,8 @@ class GenericIE(InfoExtractor): 'url': url, 'vcodec': 'none' if m.group('type') == 'audio' else None }] - info_dict.update({ - 'direct': True, - 'formats': formats, - }) + info_dict['direct'] = True + info_dict['formats'] = formats return info_dict if not self._downloader.params.get('test', False) and not is_intentional: -- 2.22.2