diff options
| author | Sergey M․ <dstftw@gmail.com> | 2016-07-02 01:35:57 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2016-07-02 01:35:57 +0700 | 
| commit | 35fc3021ba6e1e0d7b7d400fdaccc709546a4bc5 (patch) | |
| tree | f83e37550364dacff6f189bc97975ed3f29f1bfb | |
| parent | 347227237b5a101c3bed260f8efbdbfe65c5f196 (diff) | |
[periscope] Add another fallback source
| -rw-r--r-- | youtube_dl/extractor/periscope.py | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py index 34e0d3d30..75f5884a9 100644 --- a/youtube_dl/extractor/periscope.py +++ b/youtube_dl/extractor/periscope.py @@ -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) | 
