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:
parent
4063563cd7
commit
68ce5f965d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user