1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 12:42:29 +01:00

[instagram] remove unused code

This commit is contained in:
Mike Fährmann 2022-12-17 12:44:07 +01:00
parent 4063563cd7
commit 68ce5f965d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -97,10 +97,6 @@ class InstagramExtractor(Extractor):
url = response.url
if "/accounts/login/" in url:
if self._username:
self.log.debug("Invalidating cached login session for "
"'%s'", self._username)
_login_impl.invalidate(self._username)
page = "login"
elif "/challenge/" in url:
page = "challenge"
@ -121,11 +117,9 @@ class InstagramExtractor(Extractor):
return response
def login(self):
self._username = None
if not self._check_cookies(self.cookienames):
username, password = self._get_auth_info()
if username:
self._username = username
self._update_cookies(_login_impl(self, username, password))
else:
self._logged_in = False