From: Sergey M․ Date: Tue, 22 Dec 2015 20:09:50 +0000 (+0600) Subject: [periscope] Fix token based extraction (Closes #7943) X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=89abf7bf4d5dfc8c161924067f4430b7d81a8b32;p=youtube-dl.git [periscope] Fix token based extraction (Closes #7943) --- diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py index 63cc764bb..514e9b433 100644 --- a/youtube_dl/extractor/periscope.py +++ b/youtube_dl/extractor/periscope.py @@ -31,9 +31,8 @@ class PeriscopeIE(InfoExtractor): }] def _call_api(self, method, value): - attribute = 'token' if len(value) > 13 else 'broadcast_id' 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): token = self._match_id(url)