youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 89abf7bf4d5dfc8c161924067f4430b7d81a8b32
parent cfe9e5aa6c5b14016ae454649b1a9df9c7c18b3c
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed, 23 Dec 2015 02:09:50 +0600

[periscope] Fix token based extraction (Closes #7943)

Diffstat:
Myoutube_dl/extractor/periscope.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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)