mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-10 02:43:44 +00:00
simplify _VALID_URL
Authored by: bashonly
This commit is contained in:
parent
64153536ad
commit
8d03507164
@ -167,11 +167,9 @@ class ZDFBaseIE(InfoExtractor):
|
||||
|
||||
class ZDFIE(ZDFBaseIE):
|
||||
_VALID_URL = [
|
||||
# Legacy redirects from before website redesign in 2025-03
|
||||
# Also: URLs for the `/nachrichten/` sub-site
|
||||
r'https?://(?:www\.)?zdf\.de/(?:video|play)/(?:[^/?#]+/)*(?P<id>[^/?#]+)',
|
||||
# /nachrichten/ sub-site URLs and legacy redirects from before the redesign in 2025-03
|
||||
r'https?://(?:www\.)?zdf\.de/(?:[^/?#]+/)*(?P<id>[^/?#]+)\.html',
|
||||
# URLs for individual videos on the main site
|
||||
r'https?://(?:www\.)?zdf\.de/(?:video|play)/(?:[^/?#]+/)*(?P<id>[^/?#]+)/?',
|
||||
]
|
||||
_TESTS = [{
|
||||
# Standalone video (i.e. not part of a playlist), video URL
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user