Browse Source

[periscope] Add another fallback source

totalwebcasting
Sergey M․ 9 years ago
parent
commit
35fc3021ba
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      youtube_dl/extractor/periscope.py

+ 5
- 2
youtube_dl/extractor/periscope.py View File

@ -120,9 +120,12 @@ class PeriscopeUserIE(InfoExtractor):
title = user.get('display_name') or user.get('username')
description = user.get('description')
broadcast_ids = (data_store.get('UserBroadcastHistory', {}).get('broadcastIds') or
data_store.get('BroadcastCache', {}).get('broadcastIds', []))
entries = [
self.url_result(
'https://www.periscope.tv/%s/%s' % (user_id, broadcast))
for broadcast in data_store.get('UserBroadcastHistory', {}).get('broadcastIds', [])]
'https://www.periscope.tv/%s/%s' % (user_id, broadcast_id))
for broadcast_id in broadcast_ids]
return self.playlist_result(entries, user_id, title, description)

Loading…
Cancel
Save