Update instagram.py

This commit is contained in:
Sergey M 2019-01-20 16:08:41 +07:00 committed by GitHub
parent afca51643a
commit 6460f72953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,12 +233,12 @@ class InstagramPlaylistIE(InfoExtractor):
_gis_tmpl = None # used to cache GIS request type
def _parse_graphql(self, webpage, id):
def _parse_graphql(self, webpage, item_id):
# Reads a webpage and returns its GraphQL data.
return self._parse_json(
self._search_regex(
r'sharedData\s*=\s*({.+?})\s*;\s*[<\n]', webpage, 'data'),
id)
item_id)
def _extract_graphql(self, data, url):
# Parses GraphQL queries containing videos and generates a playlist.