diff options
author | Unknown <blackjack4494@web.de> | 2020-09-14 12:54:54 +0200 |
---|---|---|
committer | Unknown <blackjack4494@web.de> | 2020-09-14 12:54:54 +0200 |
commit | 1985f657e5df8529444d7f3b6726b07bae202506 (patch) | |
tree | 1c26923c100d36910a66dd9c8ee3897d7e8e8fc7 /youtube_dlc/extractor/rtlnl.py | |
parent | 0e0b56a2909f3c7191b6d276c1e751c94d6faafe (diff) | |
parent | e69dd7809034c0bec432438e2aa96b70fdea8294 (diff) | |
download | hypervideo-pre-1985f657e5df8529444d7f3b6726b07bae202506.tar.lz hypervideo-pre-1985f657e5df8529444d7f3b6726b07bae202506.tar.xz hypervideo-pre-1985f657e5df8529444d7f3b6726b07bae202506.zip |
Merge branch 'ytdl-org-master'
Diffstat (limited to 'youtube_dlc/extractor/rtlnl.py')
-rw-r--r-- | youtube_dlc/extractor/rtlnl.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/youtube_dlc/extractor/rtlnl.py b/youtube_dlc/extractor/rtlnl.py index 8be5ca236..9eaa06f25 100644 --- a/youtube_dlc/extractor/rtlnl.py +++ b/youtube_dlc/extractor/rtlnl.py @@ -14,13 +14,14 @@ class RtlNlIE(InfoExtractor): _VALID_URL = r'''(?x) https?://(?:(?:www|static)\.)? (?: - rtlxl\.nl/[^\#]*\#!/[^/]+/| - rtlxl\.nl/programma/[^/]+/| - rtl\.nl/(?:(?:system/videoplayer/(?:[^/]+/)+(?:video_)?embed\.html|embed)\b.+?\buuid=|video/) + rtlxl\.nl/(?:[^\#]*\#!|programma)/[^/]+/| + rtl\.nl/(?:(?:system/videoplayer/(?:[^/]+/)+(?:video_)?embed\.html|embed)\b.+?\buuid=|video/)| + embed\.rtl\.nl/\#uuid= ) (?P<id>[0-9a-f-]+)''' _TESTS = [{ + # new URL schema 'url': 'https://www.rtlxl.nl/programma/rtl-nieuws/0bd1384d-d970-3086-98bb-5c104e10c26f', 'md5': '490428f1187b60d714f34e1f2e3af0b6', 'info_dict': { @@ -33,7 +34,7 @@ class RtlNlIE(InfoExtractor): 'duration': 661.08, }, }, { - # old url pattern. Tests does not pass + # old URL schema 'url': 'http://www.rtlxl.nl/#!/rtl-nieuws-132237/82b1aad1-4a14-3d7b-b554-b0aed1b2c416', 'md5': '473d1946c1fdd050b2c0161a4b13c373', 'info_dict': { @@ -45,6 +46,7 @@ class RtlNlIE(InfoExtractor): 'upload_date': '20160429', 'duration': 1167.96, }, + 'skip': '404', }, { # best format available a3t 'url': 'http://www.rtl.nl/system/videoplayer/derden/rtlnieuws/video_embed.html#uuid=84ae5571-ac25-4225-ae0c-ef8d9efb2aed/autoplay=false', @@ -90,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): |