mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 01:25:06 +00:00
[periscope] Fix untitled broadcasts (#25482)
This commit is contained in:
parent
bef4688c72
commit
7016e24ebe
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def _call_api(self, method, query, item_id):
|
|||
item_id, query=query)
|
||||
|
||||
def _parse_broadcast_data(self, broadcast, video_id):
|
||||
title = broadcast['status']
|
||||
title = broadcast.get('status') or 'Periscope Broadcast'
|
||||
uploader = broadcast.get('user_display_name') or broadcast.get('username')
|
||||
title = '%s - %s' % (uploader, title) if uploader else title
|
||||
is_live = broadcast.get('state').lower() == 'running'
|
||||
|
|
Loading…
Reference in a new issue