projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe9e5a
)
[periscope] Fix token based extraction (Closes #7943)
author
Sergey M․
<dstftw@gmail.com>
Tue, 22 Dec 2015 20:09:50 +0000
(
02:09
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 22 Dec 2015 20:09:50 +0000
(
02:09
+0600)
youtube_dl/extractor/periscope.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/periscope.py
b/youtube_dl/extractor/periscope.py
index 63cc764bb8eceed80893606e640466b355279a0d..514e9b4339be43b509f9c9a8a6d2b87187e5f056 100644
(file)
--- 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)