1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-27 17:26:51 +01:00

[Loom] Move request back into _download_json

This commit is contained in:
Wong Yiu Hang 2021-02-25 03:15:13 +08:00
parent 81bd98a03f
commit 70b804526c

View File

@ -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')