[extractor/weverse] Avoid unnecessary duplicate login

Authored by: bashonly
This commit is contained in:
bashonly 2023-05-29 04:42:03 -05:00
parent f8f9250fe2
commit fd5d93f704
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -34,6 +34,9 @@ class WeverseBaseIE(InfoExtractor):
} }
def _perform_login(self, username, password): def _perform_login(self, username, password):
if self._API_HEADERS.get('Authorization'):
return
headers = { headers = {
'x-acc-app-secret': '5419526f1c624b38b10787e5c10b2a7a', 'x-acc-app-secret': '5419526f1c624b38b10787e5c10b2a7a',
'x-acc-app-version': '2.2.6', 'x-acc-app-version': '2.2.6',