A feature-rich command-line audio/video downloader
[ie/tv5monde] Support browser impersonation (#10417)
bashonly9b95a6765a5f
diff --git a/yt_dlp/extractor/tv5mondeplus.py b/yt_dlp/extractor/tv5mondeplus.pyindex 52ff230f2a..15e9975c61 100644--- a/yt_dlp/extractor/tv5mondeplus.py+++ b/yt_dlp/extractor/tv5mondeplus.py@@ -96,7 +96,7 @@ class TV5MondePlusIE(InfoExtractor):def _real_extract(self, url):display_id = self._match_id(url)- webpage = self._download_webpage(url, display_id)+ webpage = self._download_webpage(url, display_id, impersonate=True)if ">Ce programme n'est malheureusement pas disponible pour votre zone géographique.<" in webpage:self.raise_geo_restricted(countries=['FR'])