aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/ard.py
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2021-05-23 19:17:21 +0200
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-23 23:03:08 +0530
commitf17c70227055a4415f604d644704eec9c3f4fe21 (patch)
tree388d977f9cbf717bafde5221533791e1b05f3466 /yt_dlp/extractor/ard.py
parent3907333c5db9a05ab37624fdcaa6ec3ed729f2aa (diff)
downloadhypervideo-pre-f17c70227055a4415f604d644704eec9c3f4fe21.tar.lz
hypervideo-pre-f17c70227055a4415f604d644704eec9c3f4fe21.tar.xz
hypervideo-pre-f17c70227055a4415f604d644704eec9c3f4fe21.zip
[ard] Allow URLs without `-` before id
https://github.com/ytdl-org/youtube-dl/pull/29091 Authored by: olifre
Diffstat (limited to 'yt_dlp/extractor/ard.py')
-rw-r--r--yt_dlp/extractor/ard.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/ard.py b/yt_dlp/extractor/ard.py
index 4d90be714..a9cd13a05 100644
--- a/yt_dlp/extractor/ard.py
+++ b/yt_dlp/extractor/ard.py
@@ -290,7 +290,7 @@ class ARDMediathekIE(ARDMediathekBaseIE):
class ARDIE(InfoExtractor):
- _VALID_URL = r'(?P<mainurl>https?://(?:www\.)?daserste\.de/[^?#]+/videos(?:extern)?/(?P<display_id>[^/?#]+)-(?:video-?)?(?P<id>[0-9]+))\.html'
+ _VALID_URL = r'(?P<mainurl>https?://(?:www\.)?daserste\.de/[^?#]+/videos(?:extern)?/(?P<display_id>[^/?#]+)-?(?:video-?)?(?P<id>[0-9]+))\.html'
_TESTS = [{
# available till 7.01.2022
'url': 'https://www.daserste.de/information/talk/maischberger/videos/maischberger-die-woche-video100.html',
@@ -308,6 +308,9 @@ class ARDIE(InfoExtractor):
'url': 'https://www.daserste.de/information/reportage-dokumentation/erlebnis-erde/videosextern/woelfe-und-herdenschutzhunde-ungleiche-brueder-102.html',
'only_matching': True,
}, {
+ 'url': 'https://www.daserste.de/unterhaltung/serie/in-aller-freundschaft-die-jungen-aerzte/videos/diversity-tag-sanam-afrashteh100.html',
+ 'only_matching': True,
+ }, {
'url': 'http://www.daserste.de/information/reportage-dokumentation/dokus/videos/die-story-im-ersten-mission-unter-falscher-flagge-100.html',
'only_matching': True,
}]