[periscope] fix playlist extraction (#9967)
authorcant-think-of-a-name <ar513161@gmail.com>
Fri, 1 Jul 2016 01:19:17 +0000 (20:19 -0500)
committerSergey M․ <dstftw@gmail.com>
Fri, 1 Jul 2016 18:29:11 +0000 (01:29 +0700)
The JSON response changed and the extractor needed to be updated in order to gather the video IDs.

youtube_dl/extractor/periscope.py

index c23b314e79df70e6b115fee6fb91386345d00ad4..34e0d3d30f73c38d13e30886393210a05ee8a389 100644 (file)
@@ -122,7 +122,7 @@ class PeriscopeUserIE(InfoExtractor):
 
         entries = [
             self.url_result(
-                'https://www.periscope.tv/%s/%s' % (user_id, broadcast['id']))
-            for broadcast in data_store.get('UserBroadcastHistory', {}).get('broadcasts', [])]
+                'https://www.periscope.tv/%s/%s' % (user_id, broadcast))
+            for broadcast in data_store.get('UserBroadcastHistory', {}).get('broadcastIds', [])]
 
         return self.playlist_result(entries, user_id, title, description)