mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 01:08:10 +00:00
[Loom] Move request back into _download_json
This commit is contained in:
parent
81bd98a03f
commit
70b804526c
1 changed files with 2 additions and 3 deletions
|
@ -76,10 +76,9 @@ class LoomIE(LoomBaseInfoIE):
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for type in ['transcoded-url', 'raw-url']:
|
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,
|
self._BASE_URL + 'api/campaigns/sessions/' + video_id + '/' + type,
|
||||||
{})
|
video_id, data={})
|
||||||
json_doc = self._download_json(request, video_id)
|
|
||||||
url = url_or_none(json_doc.get('url'))
|
url = url_or_none(json_doc.get('url'))
|
||||||
part_credentials = json_doc.get('part_credentials')
|
part_credentials = json_doc.get('part_credentials')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue