From f4ef8145efb7481ad8a9f8f52739d2406396bbd1 Mon Sep 17 00:00:00 2001 From: Tim Mann Date: Mon, 8 Mar 2021 12:27:53 -0800 Subject: [PATCH] Make flake8 happy. This way is more readable. --- youtube_dl/extractor/pac12.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/pac12.py b/youtube_dl/extractor/pac12.py index d90904327..7344dae80 100644 --- a/youtube_dl/extractor/pac12.py +++ b/youtube_dl/extractor/pac12.py @@ -42,12 +42,15 @@ class Pac12IE(InfoExtractor): if cv is False: # May be an event page; look for the live stream. - network = try_get(drupal_settings, lambda x: x['pac12_react'][ - 'pac12_react_event_widget']['event']['broadcast_info'][ - 'broadcast_networks'][0]['id'], int) + network = try_get(drupal_settings, + lambda x: x['pac12_react'][ + 'pac12_react_event_widget']['event'][ + 'broadcast_info']['broadcast_networks'][0][ + 'id'], int) if network is not None: - cv = try_get(drupal_settings, lambda x: x['pac12_react' - ]['networks'][str(network)], dict) + cv = try_get(drupal_settings, + lambda x: x['pac12_react']['networks'][ + str(network)], dict) if not cv or 'manifest_url' not in cv: # Video may be embedded one level deeper; look for embed URL.