Просмотр исходного кода

[ie/tv5monde] Support browser impersonation (#10417)

Closes #10153
Authored by: bashonly
bashonly 8 месяцев назад
Родитель
Сommit
9b95a6765a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      yt_dlp/extractor/tv5mondeplus.py

+ 1 - 1
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'])