From: cant-think-of-a-name Date: Fri, 1 Jul 2016 01:19:17 +0000 (-0500) Subject: [periscope] fix playlist extraction (#9967) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=347227237b5a101c3bed260f8efbdbfe65c5f196;p=youtube-dl [periscope] fix playlist extraction (#9967) The JSON response changed and the extractor needed to be updated in order to gather the video IDs. --- diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py index c23b314e7..34e0d3d30 100644 --- a/youtube_dl/extractor/periscope.py +++ b/youtube_dl/extractor/periscope.py @@ -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)