aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/hidive.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2018-05-26 16:12:44 +0100
committerRemita Amine <remitamine@gmail.com>2018-05-26 16:13:54 +0100
commit68217024e83c8e7965f2800e9ff7a9575f049b5c (patch)
tree0221f6ee7aa6a8379dd936c88cadc9a5d185f79c /youtube_dl/extractor/hidive.py
parentec2f3d2800185920629a7e6946701edebbf14dd6 (diff)
downloadyoutube-dl-68217024e83c8e7965f2800e9ff7a9575f049b5c.tar.xz
remove unnecessary assignment parenthesis
Diffstat (limited to 'youtube_dl/extractor/hidive.py')
-rw-r--r--youtube_dl/extractor/hidive.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/youtube_dl/extractor/hidive.py b/youtube_dl/extractor/hidive.py
index d8f2e682f..39fabe8a5 100644
--- a/youtube_dl/extractor/hidive.py
+++ b/youtube_dl/extractor/hidive.py
@@ -18,7 +18,6 @@ class HiDiveIE(InfoExtractor):
# so disabling geo bypass completely
_GEO_BYPASS = False
_NETRC_MACHINE = 'hidive'
- _LOGGED_IN = False
_LOGIN_URL = 'https://www.hidive.com/account/login'
_TESTS = [{
@@ -38,10 +37,7 @@ class HiDiveIE(InfoExtractor):
}]
def _real_initialize(self):
- if self._LOGGED_IN:
- return
-
- (email, password) = self._get_login_info()
+ email, password = self._get_login_info()
if email is None:
return
@@ -56,7 +52,6 @@ class HiDiveIE(InfoExtractor):
})
self._download_webpage(
self._LOGIN_URL, None, 'Logging in', data=urlencode_postdata(data))
- self._LOGGED_IN = True
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)