mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-25 17:27:36 +00:00
[periscope] Fix token based extraction (Closes #7943)
This commit is contained in:
parent
cfe9e5aa6c
commit
89abf7bf4d
1 changed files with 1 additions and 2 deletions
|
@ -31,9 +31,8 @@ class PeriscopeIE(InfoExtractor):
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _call_api(self, method, value):
|
def _call_api(self, method, value):
|
||||||
attribute = 'token' if len(value) > 13 else 'broadcast_id'
|
|
||||||
return self._download_json(
|
return self._download_json(
|
||||||
'https://api.periscope.tv/api/v2/%s?%s=%s' % (method, attribute, value), value)
|
'https://api.periscope.tv/api/v2/%s?broadcast_id=%s' % (method, value), value)
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
token = self._match_id(url)
|
token = self._match_id(url)
|
||||||
|
|
Loading…
Reference in a new issue