projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef4688
)
[periscope] Fix untitled broadcasts (#25482)
author
Sergey M․
<dstftw@gmail.com>
Mon, 1 Jun 2020 13:31:51 +0000
(20:31 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 1 Jun 2020 13:31:51 +0000
(20:31 +0700)
youtube_dl/extractor/periscope.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/periscope.py
b/youtube_dl/extractor/periscope.py
index c02e34abac8720361f94b7085e5f7fb3814df312..b15906390d07715494b5653dce5499ca0ad72141 100644
(file)
--- 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'