]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[periscope] Fix untitled broadcasts (#25482)
authorSergey M․ <dstftw@gmail.com>
Mon, 1 Jun 2020 13:31:51 +0000 (20:31 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 1 Jun 2020 13:31:51 +0000 (20:31 +0700)
youtube_dl/extractor/periscope.py

index c02e34abac8720361f94b7085e5f7fb3814df312..b15906390d07715494b5653dce5499ca0ad72141 100644 (file)
@@ -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'