aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/globo.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/globo.py
parentec2f3d2800185920629a7e6946701edebbf14dd6 (diff)
downloadyoutube-dl-68217024e83c8e7965f2800e9ff7a9575f049b5c.tar.xz
remove unnecessary assignment parenthesis
Diffstat (limited to 'youtube_dl/extractor/globo.py')
-rw-r--r--youtube_dl/extractor/globo.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/youtube_dl/extractor/globo.py b/youtube_dl/extractor/globo.py
index 81d6d36d3..c2140c362 100644
--- a/youtube_dl/extractor/globo.py
+++ b/youtube_dl/extractor/globo.py
@@ -23,7 +23,6 @@ from ..utils import (
class GloboIE(InfoExtractor):
_VALID_URL = r'(?:globo:|https?://.+?\.globo\.com/(?:[^/]+/)*(?:v/(?:[^/]+/)?|videos/))(?P<id>\d{7,})'
- _LOGGED_IN = False
_NETRC_MACHINE = 'globo'
_TESTS = [{
'url': 'http://g1.globo.com/carros/autoesporte/videos/t/exclusivos-do-g1/v/mercedes-benz-gla-passa-por-teste-de-colisao-na-europa/3607726/',
@@ -68,9 +67,6 @@ class GloboIE(InfoExtractor):
}]
def _real_initialize(self):
- if self._LOGGED_IN:
- return
-
email, password = self._get_login_info()
if email is None:
return
@@ -91,7 +87,6 @@ class GloboIE(InfoExtractor):
resp = self._parse_json(e.cause.read(), None)
raise ExtractorError(resp.get('userMessage') or resp['id'], expected=True)
raise
- self._LOGGED_IN = True
def _real_extract(self, url):
video_id = self._match_id(url)