Skip to content

Commit

Permalink
fix proxy type: bool->str
Browse files Browse the repository at this point in the history
  • Loading branch information
grqx committed Sep 19, 2024
1 parent 231045e commit e1f7ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. '
Expand Down

0 comments on commit e1f7ea2

Please sign in to comment.