From 57c6251e35f6d10f3d461dd208c58b1c2b100b5c Mon Sep 17 00:00:00 2001 From: Shiyang Zhu Date: Sat, 10 Dec 2022 15:53:11 -0500 Subject: [PATCH] Removed trailing parentheses to better fit style guide. --- youtube_dl/extractor/senateisvp.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/senateisvp.py b/youtube_dl/extractor/senateisvp.py index 8794b60e4..33ee76d1d 100644 --- a/youtube_dl/extractor/senateisvp.py +++ b/youtube_dl/extractor/senateisvp.py @@ -7,11 +7,10 @@ from ..utils import ( ExtractorError, url_or_none, parse_duration, - unsmuggle_url, -) + unsmuggle_url) + from ..compat import ( - compat_parse_qs, -) + compat_parse_qs) class SenateISVPIE(InfoExtractor): @@ -126,9 +125,7 @@ class SenateISVPIE(InfoExtractor): video_id = re.sub(r'\.mp4$', '', filename) # there is no point in pulling the title from the webpage since it always defaults to 'Integrated Senate Player' - title = filename - if smuggled_data: - title = smuggled_data['force_title'] + title = smuggled_data.get('force_title') or filename stream_number, stream_domain, stream_id, msl3 = self._get_info_for_comm(committee) # the possible locations that the video could be contained at. @@ -148,8 +145,7 @@ class SenateISVPIE(InfoExtractor): ext='mp4', m3u8_id='hls', entry_protocol='m3u8_native', - fatal=False, - ) + fatal=False) for entry in entries: mobj = re.search(r'(?P-[pb]).m3u8', entry['url'])