mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-29 03:55:53 +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):
|
class ZDFIE(ZDFBaseIE):
|
||||||
_VALID_URL = [
|
_VALID_URL = [
|
||||||
# Legacy redirects from before website redesign in 2025-03
|
r'https?://(?:www\.)?zdf\.de/(?:video|play)/(?:[^/?#]+/)*(?P<id>[^/?#]+)',
|
||||||
# Also: URLs for the `/nachrichten/` sub-site
|
# /nachrichten/ sub-site URLs and legacy redirects from before the redesign in 2025-03
|
||||||
r'https?://(?:www\.)?zdf\.de/(?:[^/?#]+/)*(?P<id>[^/?#]+)\.html',
|
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 = [{
|
_TESTS = [{
|
||||||
# Standalone video (i.e. not part of a playlist), video URL
|
# Standalone video (i.e. not part of a playlist), video URL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user