[canvas] Match only supported VRT NU URLs(#27707)
authorRemita Amine <remitamine@gmail.com>
Thu, 7 Jan 2021 11:35:04 +0000 (12:35 +0100)
committerRemita Amine <remitamine@gmail.com>
Thu, 7 Jan 2021 11:35:04 +0000 (12:35 +0100)
youtube_dl/extractor/canvas.py

index 65d65d52e18b2feebac683ad141f9bc8e9d476a7..8b76a0200ca51a350052d7bcc2b4beff3fee2448 100644 (file)
@@ -211,7 +211,7 @@ class CanvasEenIE(InfoExtractor):
 
 class VrtNUIE(GigyaBaseIE):
     IE_DESC = 'VrtNU.be'
-    _VALID_URL = r'https?://(?:www\.)?vrt\.be/(?P<site_id>vrtnu)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
+    _VALID_URL = r'https?://(?:www\.)?vrt\.be/vrtnu/a-z/(?:[^/]+/){2}(?P<id>[^/?#&]+)'
     _TESTS = [{
         # Available via old API endpoint
         'url': 'https://www.vrt.be/vrtnu/a-z/postbus-x/1989/postbus-x-s1989a1/',