From 279539e995e5aca23c3be39a442574f013391d66 Mon Sep 17 00:00:00 2001 From: Yuval Hager Date: Tue, 18 May 2021 18:17:43 -0700 Subject: [PATCH] fix trailing parentheses --- youtube_dl/extractor/kan.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/youtube_dl/extractor/kan.py b/youtube_dl/extractor/kan.py index 84f8c4f77..48d000007 100644 --- a/youtube_dl/extractor/kan.py +++ b/youtube_dl/extractor/kan.py @@ -8,8 +8,7 @@ from ..utils import ( ExtractorError, parse_duration, try_get, - unified_strdate, -) + unified_strdate) def get_thumbnail(data): @@ -35,10 +34,8 @@ class KanBaseIE(InfoExtractor): self._search_regex( r']+id="kan_app_search_data"[^>]*>([^<]+)', webpage, - 'data', - ), - video_id, - ) + 'data'), + video_id) title = data.get('title') or self._og_search_title(webpage) m3u8_url = try_get(data, lambda x: x['content']['src'], compat_str) formats = self._extract_m3u8_formats(m3u8_url, video_id, ext='mp4') @@ -106,8 +103,7 @@ class KanPlaylistIE(KanBaseIE): video_url = 'https://www.kan.org.il/Item/?itemId=%s' % video_id entries.append(self.extract_item( video_id, - self.download_webpage(video_url, video_id)) - ) + self.download_webpage(video_url, video_id))) if not entries: raise ExtractorError('Unable to extract playlist entries')