From 88f06afc0c05cd110a8dfe14cf51aa966cbe8cbc Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 1 May 2021 19:47:10 +0530 Subject: [PATCH] [rmcdecouverte] Improve `_VALID_URL` Closes #291 --- yt_dlp/extractor/rmcdecouverte.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/rmcdecouverte.py b/yt_dlp/extractor/rmcdecouverte.py index c3623edcc7..ecd16d130a 100644 --- a/yt_dlp/extractor/rmcdecouverte.py +++ b/yt_dlp/extractor/rmcdecouverte.py @@ -13,9 +13,24 @@ class RMCDecouverteIE(InfoExtractor): - _VALID_URL = r'https?://rmcdecouverte\.bfmtv\.com/(?:(?:[^/]+/)*program_(?P\d+)|(?Pmediaplayer-direct))' + _VALID_URL = r'https?://rmcdecouverte\.bfmtv\.com/(?:[^/]+/(?P[^?#/]+)|(?Pmediaplayer-direct))' _TESTS = [{ + 'url': 'https://rmcdecouverte.bfmtv.com/vestiges-de-guerre_22240/les-bunkers-secrets-domaha-beach_25303/', + 'info_dict': { + 'id': '6250879771001', + 'ext': 'mp4', + 'title': 'LES BUNKERS SECRETS DĀ“OMAHA BEACH', + 'uploader_id': '1969646226001', + 'description': 'md5:aed573ca24abde62a148e0eba909657d', + 'timestamp': 1619622984, + 'upload_date': '20210428', + }, + 'params': { + 'format': 'bestvideo', + 'skip_download': True, + }, + }, { 'url': 'https://rmcdecouverte.bfmtv.com/wheeler-dealers-occasions-a-saisir/program_2566/', 'info_dict': { 'id': '5983675500001',