aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-06-01 20:31:51 +0700
committerSergey M․ <dstftw@gmail.com>2020-06-01 20:31:51 +0700
commit7016e24ebea09c717f413273cda16721c4098325 (patch)
tree222be9517de73dd9951df2b09a1e77f3d4f71cf7 /youtube_dl
parentbef4688c72f9bdb37f261cc2699d6915a5593edc (diff)
[periscope] Fix untitled broadcasts (#25482)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/periscope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py
index c02e34aba..b15906390 100644
--- a/youtube_dl/extractor/periscope.py
+++ b/youtube_dl/extractor/periscope.py
@@ -18,7 +18,7 @@ class PeriscopeBaseIE(InfoExtractor):
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'