aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-08 15:37:20 +0100
committerremitamine <remitamine@gmail.com>2015-09-08 15:37:20 +0100
commitb58a22b9632a226fc453bb52f195e7577476f35e (patch)
treef870cd3a10d60bfba3f49d61dce2d77a2da1852c /youtube_dl
parent64997815c49a79c3d91e65198cc79d13bed234e9 (diff)
[ndr] make NDREmbed and NJoyEmbed _VALID_URL regex unique
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/ndr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ndr.py b/youtube_dl/extractor/ndr.py
index aca85825d..2a73650d4 100644
--- a/youtube_dl/extractor/ndr.py
+++ b/youtube_dl/extractor/ndr.py
@@ -152,7 +152,7 @@ class NDREmbedBaseIE(NDRBaseIE):
class NDREmbedIE(NDREmbedBaseIE):
IE_NAME = 'ndr:embed'
- _VALID_URL = r'https?://www\.ndr\.de/(?:[^/]+/)+(?P<id>\w+)'
+ _VALID_URL = r'https?://www\.ndr\.de/(?:[^/]+/)+(?P<id>[a-z0-9]+)-(?:player|externalPlayer)\.html'
_TEST = {
'url': 'http://www.ndr.de/fernsehen/sendungen/ndr_aktuell/ndraktuell28488-player.html',
@@ -168,7 +168,7 @@ class NDREmbedIE(NDREmbedBaseIE):
class NJoyEmbedIE(NDREmbedBaseIE):
IE_NAME = 'N-JOY:embed'
- _VALID_URL = r'https?://www\.n-joy\.de/(?:[^/]+/)(?P<id>\w+)'
+ _VALID_URL = r'https?://www\.n-joy\.de/(?:[^/]+/)+(?P<id>[a-z0-9]+)-(?:player|externalPlayer)\.html'
_TEST = {
'url': 'http://www.n-joy.de/entertainment/film/portraet374-player_image-832d9b79-fa8a-4026-92e2-e0fd99deb2f9_theme-n-joy.html',