From fbb8396758be2f3df8057e5d2c801420105a4648 Mon Sep 17 00:00:00 2001 From: sepro Date: Fri, 18 Apr 2025 22:20:23 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/tvw.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yt_dlp/extractor/tvw.py b/yt_dlp/extractor/tvw.py index 14e3142aee..b7749eae00 100644 --- a/yt_dlp/extractor/tvw.py +++ b/yt_dlp/extractor/tvw.py @@ -126,15 +126,15 @@ class TvwIE(InfoExtractor): class TvwTvChannelsIE(InfoExtractor): - IE_NAME = 'Tvw:TvChannels' + IE_NAME = 'tvw:tvchannels' _VALID_URL = r'https?://(?:www\.)?tvw\.org/tvchannels/(?P[^/?#]+)' _TESTS = [{ 'url': 'https://tvw.org/tvchannels/air/', 'info_dict': { 'id': 'air', 'ext': 'mp4', - 'title': r're:^TVW Cable Channel Live Stream', - 'thumbnail': r're:^https?://.*\.(?:jpe?g|png)$', + 'title': r're:TVW Cable Channel Live Stream', + 'thumbnail': r're:https?://.+/.+\.(?:jpe?g|png)$', 'live_status': 'is_live', }, }, { @@ -142,8 +142,8 @@ class TvwTvChannelsIE(InfoExtractor): 'info_dict': { 'id': 'tvw2', 'ext': 'mp4', - 'title': r're:^TVW-2 Broadcast Channel', - 'thumbnail': r're:^https?://.*\.(?:jpe?g|png)$', + 'title': r're:TVW-2 Broadcast Channel', + 'thumbnail': r're:https?://.+/.+\.(?:jpe?g|png)$', 'live_status': 'is_live', }, }]