From 19fa262ecb1e5ed02f525b59a81310834ca4978f Mon Sep 17 00:00:00 2001 From: bashonly Date: Fri, 15 Nov 2024 20:21:08 -0600 Subject: [PATCH] ruff fixes Authored by: bashonly --- yt_dlp/extractor/_extractors.py | 5 +---- yt_dlp/extractor/thirtydaysinger.py | 15 ++++++--------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 422b1aae73..e905245791 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -2083,10 +2083,7 @@ from .theplatform import ( from .thestar import TheStarIE from .thesun import TheSunIE from .theweatherchannel import TheWeatherChannelIE -from .thirtydaysinger import ( - ThirtyDaySingerIE, - ThirtyDaySingerPlaylistIE -) +from .thirtydaysinger import ThirtyDaySingerIE, ThirtyDaySingerPlaylistIE from .thisamericanlife import ThisAmericanLifeIE from .thisoldhouse import ThisOldHouseIE from .thisvid import ( diff --git a/yt_dlp/extractor/thirtydaysinger.py b/yt_dlp/extractor/thirtydaysinger.py index 9d57e9b536..cc3fd754e7 100644 --- a/yt_dlp/extractor/thirtydaysinger.py +++ b/yt_dlp/extractor/thirtydaysinger.py @@ -1,10 +1,7 @@ import re from .wistia import WistiaBaseIE -from ..utils import ( - clean_html, - get_elements_html_by_class -) +from ..utils import clean_html, get_elements_html_by_class class ThirtyDaySingerBase(WistiaBaseIE): @@ -28,7 +25,7 @@ class ThirtyDaySingerBase(WistiaBaseIE): return { 'title': title or fallback_title, - 'description': clean_html(self._format_html_list(description)) + 'description': clean_html(self._format_html_list(description)), } # The site makes extensive use of HTML lists for formatting and `clean_html` @@ -38,7 +35,7 @@ class ThirtyDaySingerBase(WistiaBaseIE): '