From 8d03507164a9ad159f05143c70d6b8adddf0ff5f Mon Sep 17 00:00:00 2001 From: bashonly Date: Wed, 30 Apr 2025 01:40:14 -0500 Subject: [PATCH] simplify `_VALID_URL` Authored by: bashonly --- yt_dlp/extractor/zdf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/zdf.py b/yt_dlp/extractor/zdf.py index 05f6a5e12a..3832ebdda2 100644 --- a/yt_dlp/extractor/zdf.py +++ b/yt_dlp/extractor/zdf.py @@ -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[^/?#]+)', + # /nachrichten/ sub-site URLs and legacy redirects from before the redesign in 2025-03 r'https?://(?:www\.)?zdf\.de/(?:[^/?#]+/)*(?P[^/?#]+)\.html', - # URLs for individual videos on the main site - r'https?://(?:www\.)?zdf\.de/(?:video|play)/(?:[^/?#]+/)*(?P[^/?#]+)/?', ] _TESTS = [{ # Standalone video (i.e. not part of a playlist), video URL