]> jfr.im git - yt-dlp.git/commitdiff
Bugfix for b844a3f8b16500663e7ab6c6ec061cc9b30f71ac
authorbashonly <redacted>
Mon, 29 May 2023 09:42:03 +0000 (04:42 -0500)
committerbashonly <redacted>
Mon, 29 May 2023 09:42:03 +0000 (04:42 -0500)
[extractor/weverse] Avoid unnecessary duplicate login

Authored by: bashonly

yt_dlp/extractor/weverse.py

index ab629c885c5c0f8bf37d879deb9b2098a56b7554..8f2a7ee06b4ad96930833a4b2c85491bd0ee223b 100644 (file)
@@ -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',