mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-02 16:37:59 +09:00
Make flake8 happy. This way is more readable.
This commit is contained in:
parent
5987eb1302
commit
f4ef8145ef
@ -42,12 +42,15 @@ class Pac12IE(InfoExtractor):
|
|||||||
|
|
||||||
if cv is False:
|
if cv is False:
|
||||||
# May be an event page; look for the live stream.
|
# May be an event page; look for the live stream.
|
||||||
network = try_get(drupal_settings, lambda x: x['pac12_react'][
|
network = try_get(drupal_settings,
|
||||||
'pac12_react_event_widget']['event']['broadcast_info'][
|
lambda x: x['pac12_react'][
|
||||||
'broadcast_networks'][0]['id'], int)
|
'pac12_react_event_widget']['event'][
|
||||||
|
'broadcast_info']['broadcast_networks'][0][
|
||||||
|
'id'], int)
|
||||||
if network is not None:
|
if network is not None:
|
||||||
cv = try_get(drupal_settings, lambda x: x['pac12_react'
|
cv = try_get(drupal_settings,
|
||||||
]['networks'][str(network)], dict)
|
lambda x: x['pac12_react']['networks'][
|
||||||
|
str(network)], dict)
|
||||||
|
|
||||||
if not cv or 'manifest_url' not in cv:
|
if not cv or 'manifest_url' not in cv:
|
||||||
# Video may be embedded one level deeper; look for embed URL.
|
# Video may be embedded one level deeper; look for embed URL.
|
||||||
|
Loading…
Reference in New Issue
Block a user