1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-17 18:58:35 +00:00

[ie/francetv] Improve error handling (#13726)

Closes #13324
Authored by: bashonly
This commit is contained in:
bashonly 2025-07-14 12:25:45 -05:00 committed by GitHub
parent 7e0af2b1f0
commit ade876efb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,9 +124,10 @@ def _extract_video(self, video_id, hostname=None):
elif code := traverse_obj(dinfo, ('code', {int})):
if code == 2009:
self.raise_geo_restricted(countries=self._GEO_COUNTRIES)
elif code in (2015, 2017):
elif code in (2015, 2017, 2019):
# 2015: L'accès à cette vidéo est impossible. (DRM-only)
# 2017: Cette vidéo n'est pas disponible depuis le site web mobile (b/c DRM)
# 2019: L'accès à cette vidéo est incompatible avec votre configuration. (DRM-only)
drm_formats = True
continue
self.report_warning(