[cleanup] Bump ruff to 0.13.x (#14293)

Authored by: bashonly
This commit is contained in:
bashonly 2025-09-11 10:18:01 -05:00 committed by GitHub
parent 22ea0688ed
commit ba80446855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 34 additions and 33 deletions

View file

@ -414,7 +414,7 @@ class RadioFranceProgramScheduleIE(RadioFranceBaseIE):
_VALID_URL = rf'''(?x)
{RadioFranceBaseIE._VALID_URL_BASE}
/(?P<station>{RadioFranceBaseIE._STATIONS_RE})
/grille-programmes(?:\?date=(?P<date>[\d-]+))?
/grille-programmes
'''
_TESTS = [{
@ -463,7 +463,7 @@ class RadioFranceProgramScheduleIE(RadioFranceBaseIE):
}))
def _real_extract(self, url):
station, date = self._match_valid_url(url).group('station', 'date')
station = self._match_valid_url(url).group('station')
webpage = self._download_webpage(url, station)
grid_data = self._extract_data_from_webpage(webpage, station, 'grid')
upload_date = strftime_or_none(grid_data.get('date'), '%Y%m%d')