From e01fab70415a82c5fd16681a7ec5fa279c47a3bf Mon Sep 17 00:00:00 2001 From: lonm Date: Tue, 15 Oct 2024 14:44:48 +0100 Subject: [PATCH] [RadioFrance] fix profile pagination detection --- yt_dlp/extractor/radiofrance.py | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/yt_dlp/extractor/radiofrance.py b/yt_dlp/extractor/radiofrance.py index 0d071ceef1..ab3010b22b 100644 --- a/yt_dlp/extractor/radiofrance.py +++ b/yt_dlp/extractor/radiofrance.py @@ -392,7 +392,7 @@ class RadioFranceProfileIE(RadioFrancePlaylistBaseIE): _VALID_URL = rf'{RadioFranceBaseIE._VALID_URL_BASE}/personnes/(?P[\w-]+)' _TESTS = [{ - 'url': 'https://www.radiofrance.fr/personnes/thomas-pesquet?p=3', + 'url': 'https://www.radiofrance.fr/personnes/thomas-pesquet', 'info_dict': { 'id': '86c62790-e481-11e2-9f7b-782bcb6744eb', 'display_id': 'thomas-pesquet', @@ -422,30 +422,24 @@ class RadioFranceProfileIE(RadioFrancePlaylistBaseIE): webpage = self._download_webpage(url, profile_id, note=f'Downloading {profile_id} page {cursor}') resp = dict() - - # On profile pages, the data is stored in a javascript array in the final