]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[periscope:user] Fix extraction (Closes #10820)
authorSergey M․ <dstftw@gmail.com>
Sat, 1 Oct 2016 15:50:47 +0000 (22:50 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 1 Oct 2016 15:50:47 +0000 (22:50 +0700)
youtube_dl/extractor/periscope.py

index 61043cad5c23880abba1666842cdf7a6490c44b3..0e362302425cbe504b33b90aa1937dc68b9e288a 100644 (file)
@@ -132,7 +132,7 @@ class PeriscopeUserIE(PeriscopeBaseIE):
 
         user = list(data_store['UserCache']['users'].values())[0]['user']
         user_id = user['id']
-        session_id = data_store['SessionToken']['broadcastHistory']['token']['session_id']
+        session_id = data_store['SessionToken']['public']['broadcastHistory']['token']['session_id']
 
         broadcasts = self._call_api(
             'getUserBroadcastsPublic',