From 9d54ffc768b3beac61407c27fec5aa956aacb058 Mon Sep 17 00:00:00 2001 From: lonm Date: Tue, 15 Oct 2024 14:52:11 +0100 Subject: [PATCH] [RadioFrance] update tests for program grille --- yt_dlp/extractor/radiofrance.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/radiofrance.py b/yt_dlp/extractor/radiofrance.py index ab3010b22b..a293e9652d 100644 --- a/yt_dlp/extractor/radiofrance.py +++ b/yt_dlp/extractor/radiofrance.py @@ -431,7 +431,7 @@ def _call_api(self, station, profile_id, cursor): # get thepage data pagekey = pagedata['pagination'] hasMorePages = False - lastPage = int(self._search_regex(pagekey+'\.lastPage=(\d+);', webpage, profile_id, '0')) + lastPage = int(self._search_regex(pagekey+r'\.lastPage=(\d+);', webpage, profile_id, '0')) hasMorePages = cursor < lastPage resp['next'] = cursor + 1 if hasMorePages else None @@ -464,14 +464,14 @@ class RadioFranceProgramScheduleIE(RadioFranceBaseIE): 'id': 'franceinter-program-20230217', 'upload_date': '20230217', }, - 'playlist_count': 25, + 'playlist_count': 27, }, { 'url': 'https://www.radiofrance.fr/franceculture/grille-programmes?date=01-02-2023', 'info_dict': { 'id': 'franceculture-program-20230201', 'upload_date': '20230201', }, - 'playlist_count': 25, + 'playlist_count': 29, }, { 'url': 'https://www.radiofrance.fr/mouv/grille-programmes?date=19-03-2023', 'info_dict': { @@ -485,7 +485,7 @@ class RadioFranceProgramScheduleIE(RadioFranceBaseIE): 'id': 'francemusique-program-20230318', 'upload_date': '20230318', }, - 'playlist_count': 15, + 'playlist_count': 16, }, { 'url': 'https://www.radiofrance.fr/franceculture/grille-programmes', 'only_matching': True,