From e1f7ea2ba31ad16c70585b212a9de854c6571eb2 Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Thu, 19 Sep 2024 04:35:16 +0000 Subject: [PATCH] fix proxy type: bool->str --- plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py b/plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py index 0bc9e63..d0a4d35 100644 --- a/plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py +++ b/plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py @@ -58,7 +58,7 @@ def _validate_get_pot(self, client: str, ydl: YoutubeDL, visitor_data=None, data def _get_pot(self, client: str, ydl: YoutubeDL, visitor_data=None, data_sync_id=None, player_url=None, **kwargs) -> str: self._logger.info('Generating POT via HTTP server') - if (proxy := select_proxy('https://jnn-pa.googleapis.com', self.proxies) + if ((proxy := select_proxy('https://jnn-pa.googleapis.com', self.proxies)) != select_proxy('https://youtube.com', self.proxies)): self._logger.warning( 'Proxies for https://youtube.com and https://jnn-pa.googleapis.com are different. '