1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 00:07:49 +00:00

[periscope] Add another fallback source

This commit is contained in:
Sergey M․ 2016-07-02 01:35:57 +07:00
parent 347227237b
commit 35fc3021ba
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

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