mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-30 19:02:55 +01:00
[periscope] Update uploader_id (Closes #9565)
This commit is contained in:
parent
0db9a05f88
commit
92d221ad48
@ -45,8 +45,11 @@ class PeriscopeIE(InfoExtractor):
|
|||||||
broadcast = broadcast_data['broadcast']
|
broadcast = broadcast_data['broadcast']
|
||||||
status = broadcast['status']
|
status = broadcast['status']
|
||||||
|
|
||||||
uploader = broadcast.get('user_display_name') or broadcast_data.get('user', {}).get('display_name')
|
user = broadcast_data.get('user', {})
|
||||||
uploader_id = broadcast.get('user_id') or broadcast_data.get('user', {}).get('id')
|
|
||||||
|
uploader = broadcast.get('user_display_name') or user.get('display_name')
|
||||||
|
uploader_id = (broadcast.get('username') or user.get('username') or
|
||||||
|
broadcast.get('user_id') or user.get('id'))
|
||||||
|
|
||||||
title = '%s - %s' % (uploader, status) if uploader else status
|
title = '%s - %s' % (uploader, status) if uploader else status
|
||||||
state = broadcast.get('state').lower()
|
state = broadcast.get('state').lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user