1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[instagram:user] Remove User-Agent from signature (closes #16119)

This commit is contained in:
Sergey M․ 2018-04-13 22:27:52 +07:00
parent 92ded33a05
commit 68ddba20ae
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -11,7 +11,6 @@ from ..utils import (
get_element_by_attribute,
int_or_none,
lowercase_escape,
std_headers,
try_get,
)
@ -258,7 +257,7 @@ class InstagramUserIE(InfoExtractor):
'first': 100,
'after': cursor,
})
s = '%s:%s:%s:%s' % (rhx_gis, csrf_token, std_headers['User-Agent'], variables)
s = '%s:%s:%s' % (rhx_gis, csrf_token, variables)
media = self._download_json(
'https://www.instagram.com/graphql/query/', uploader_id,
'Downloading JSON page %d' % page_num, headers={