From 4b9a54b464bd9ddc57170f27a8ffd4ac6a987bd3 Mon Sep 17 00:00:00 2001 From: Kyle Gonsalves Date: Sun, 21 Apr 2024 16:41:19 -0700 Subject: [PATCH] flake8 check --- yt_dlp/extractor/bbc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yt_dlp/extractor/bbc.py b/yt_dlp/extractor/bbc.py index 46fa7b7de..50ccf922f 100644 --- a/yt_dlp/extractor/bbc.py +++ b/yt_dlp/extractor/bbc.py @@ -1270,7 +1270,7 @@ class BBCIE(BBCCoUkIE): # XXX: Do not subclass from concrete IE def parse_model(model): '''Extract single video from model structure''' - if(type(model) == list): + if isinstance(model, list): model = model[0] item_id = traverse_obj(model, ('versions', 0, 'versionId', {str})) if not item_id: @@ -1285,10 +1285,10 @@ class BBCIE(BBCCoUkIE): # XXX: Do not subclass from concrete IE 'thumbnail': ('imageUrl', {lambda u: urljoin(url, u.replace('$recipe', 'raw'))}), 'description': ( 'synopses', ('long', 'medium', 'short'), {str}, any), - 'duration': ('versions', 0, 'duration', {int}), - 'timestamp': ('versions', 0, 'availableFrom', {lambda x: int_or_none(x, scale=1000)}), - }) - } + 'duration': ('versions', 0, 'duration', {int}), + 'timestamp': ('versions', 0, 'availableFrom', {lambda x: int_or_none(x, scale=1000)}), + }) + } # US accessed article with single embedded video (e.g. # https://www.bbc.com/news/uk-68546268)