Skip to content

Commit

Permalink
[rtlnl] Extend _VALID_URL for new embed URL schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Sep 13, 2020
1 parent 97f34a4 commit 45f6362
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion youtube_dl/extractor/rtlnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class RtlNlIE(InfoExtractor):
https?://(?:(?:www|static)\.)?
(?:
rtlxl\.nl/(?:[^\#]*\#!|programma)/[^/]+/|
rtl\.nl/(?:(?:system/videoplayer/(?:[^/]+/)+(?:video_)?embed\.html|embed)\b.+?\buuid=|video/)
rtl\.nl/(?:(?:system/videoplayer/(?:[^/]+/)+(?:video_)?embed\.html|embed)\b.+?\buuid=|video/)|
embed\.rtl\.nl/\#uuid=
)
(?P<id>[0-9a-f-]+)'''

Expand Down Expand Up @@ -91,6 +92,10 @@ class RtlNlIE(InfoExtractor):
}, {
'url': 'https://static.rtl.nl/embed/?uuid=1a2970fc-5c0b-43ff-9fdc-927e39e6d1bc&autoplay=false&publicatiepunt=rtlnieuwsnl',
'only_matching': True,
}, {
# new embed URL schema
'url': 'https://embed.rtl.nl/#uuid=84ae5571-ac25-4225-ae0c-ef8d9efb2aed/autoplay=false',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down

0 comments on commit 45f6362

Please sign in to comment.