From fd5d93f7040f9776fd541f4e4079dad7d3b3fb4f Mon Sep 17 00:00:00 2001 From: bashonly Date: Mon, 29 May 2023 04:42:03 -0500 Subject: [PATCH] Bugfix for b844a3f8b16500663e7ab6c6ec061cc9b30f71ac [extractor/weverse] Avoid unnecessary duplicate login Authored by: bashonly --- yt_dlp/extractor/weverse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/weverse.py b/yt_dlp/extractor/weverse.py index ab629c885..8f2a7ee06 100644 --- a/yt_dlp/extractor/weverse.py +++ b/yt_dlp/extractor/weverse.py @@ -34,6 +34,9 @@ class WeverseBaseIE(InfoExtractor): } def _perform_login(self, username, password): + if self._API_HEADERS.get('Authorization'): + return + headers = { 'x-acc-app-secret': '5419526f1c624b38b10787e5c10b2a7a', 'x-acc-app-version': '2.2.6',