Selaa lähdekoodia

[periscope] fix playlist extraction (#9967)

The JSON response changed and the extractor needed to be updated in order to gather the video IDs.
cant-think-of-a-name 9 vuotta sitten
vanhempi
sitoutus
347227237b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      youtube_dl/extractor/periscope.py

+ 2 - 2
youtube_dl/extractor/periscope.py

@@ -122,7 +122,7 @@ class PeriscopeUserIE(InfoExtractor):
 
 
         entries = [
         entries = [
             self.url_result(
             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)
         return self.playlist_result(entries, user_id, title, description)