1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-01-18 23:03:05 +01:00

apply @dirkf suggestion - makes code clearer and more legible

This commit is contained in:
krandor 2025-01-10 17:01:58 -05:00
parent 160f09c17f
commit 1160c6db48

View file

@ -188,12 +188,12 @@ class PBSIE(InfoExtractor):
# Player # Player
(?:video|player)\.pbs\.org/(?:widget/)?partnerplayer/(?P<player_id>[^/]+) | (?:video|player)\.pbs\.org/(?:widget/)?partnerplayer/(?P<player_id>[^/]+) |
# Direct video URL, or article with embedded player # Direct video URL, or article with embedded player
(?:%s)/(?: (?:{})/(?:
(?:(?:vir|port)alplayer|video)/(?P<id>[0-9]+)(?:[?/]|$) | (?:(?:vir|port)alplayer|video)/(?P<id>[0-9]+)(?:[?/]|$) |
(?:[^/]+/){1,5}(?P<presumptive_id>[^/]+?)(?:\.html)?/?(?:$|[?\#]) (?:[^/]+/){{1,5}}(?P<presumptive_id>[^/]+?)(?:\.html)?/?(?:$|[?\#])
) )
) )
''' % '|'.join(next(zip(*_STATIONS))) '''.format('|'.join(next(zip(*_STATIONS))))
_GEO_COUNTRIES = ['US'] _GEO_COUNTRIES = ['US']