From 1160c6db484a8c0c4780ff21cf06dd4c1e25a75e Mon Sep 17 00:00:00 2001 From: krandor Date: Fri, 10 Jan 2025 17:01:58 -0500 Subject: [PATCH] apply @dirkf suggestion - makes code clearer and more legible --- yt_dlp/extractor/pbs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/pbs.py b/yt_dlp/extractor/pbs.py index 466f05ff26..ff66c23622 100644 --- a/yt_dlp/extractor/pbs.py +++ b/yt_dlp/extractor/pbs.py @@ -188,12 +188,12 @@ class PBSIE(InfoExtractor): # Player (?:video|player)\.pbs\.org/(?:widget/)?partnerplayer/(?P[^/]+) | # Direct video URL, or article with embedded player - (?:%s)/(?: + (?:{})/(?: (?:(?:vir|port)alplayer|video)/(?P[0-9]+)(?:[?/]|$) | - (?:[^/]+/){1,5}(?P[^/]+?)(?:\.html)?/?(?:$|[?\#]) + (?:[^/]+/){{1,5}}(?P[^/]+?)(?:\.html)?/?(?:$|[?\#]) ) ) - ''' % '|'.join(next(zip(*_STATIONS))) + '''.format('|'.join(next(zip(*_STATIONS)))) _GEO_COUNTRIES = ['US']