From 70b804526cf51a7132b02d682721a880bfafcf52 Mon Sep 17 00:00:00 2001 From: Wong Yiu Hang Date: Thu, 25 Feb 2021 03:15:13 +0800 Subject: [PATCH] [Loom] Move request back into _download_json --- youtube_dl/extractor/loom.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/loom.py b/youtube_dl/extractor/loom.py index 76cf9d30e..d79bb2d8f 100644 --- a/youtube_dl/extractor/loom.py +++ b/youtube_dl/extractor/loom.py @@ -76,10 +76,9 @@ class LoomIE(LoomBaseInfoIE): formats = [] for type in ['transcoded-url', 'raw-url']: - request = compat_urllib_request.Request( + json_doc = self._download_json( self._BASE_URL + 'api/campaigns/sessions/' + video_id + '/' + type, - {}) - json_doc = self._download_json(request, video_id) + video_id, data={}) url = url_or_none(json_doc.get('url')) part_credentials = json_doc.get('part_credentials')