aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vvvvid.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-12-16 11:04:58 +0100
committerRemita Amine <remitamine@gmail.com>2016-12-16 11:05:46 +0100
commitdc1f3a9f20a9e87638d550a201a5645fdbf0dbee (patch)
treeaa73058fceea18801fe4bbe93f027ea4236b659c /youtube_dl/extractor/vvvvid.py
parent7b1e80792bd76a4fb9b091b3b327423030cdf9a2 (diff)
[vvvvid] do not cache the conn_id
Diffstat (limited to 'youtube_dl/extractor/vvvvid.py')
-rw-r--r--youtube_dl/extractor/vvvvid.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/youtube_dl/extractor/vvvvid.py b/youtube_dl/extractor/vvvvid.py
index 04fe2e89f..d44ec85fd 100644
--- a/youtube_dl/extractor/vvvvid.py
+++ b/youtube_dl/extractor/vvvvid.py
@@ -35,17 +35,9 @@ class VVVVIDIE(InfoExtractor):
_conn_id = None
def _real_initialize(self):
- if not self._conn_id:
- user = self._downloader.cache.load('vvvvid', 'user') or {}
- self._conn_id = user.get('conn_id')
- if not self._conn_id:
- self._conn_id = self._download_json(
- 'https://www.vvvvid.it/user/login',
- None, headers=self.geo_verification_headers())['data']['conn_id']
- self._downloader.cache.store(
- 'vvvvid', 'user', {
- 'conn_id': self._conn_id,
- })
+ self._conn_id = self._download_json(
+ 'https://www.vvvvid.it/user/login',
+ None, headers=self.geo_verification_headers())['data']['conn_id']
def _real_extract(self, url):
show_id, season_id, video_id = re.match(self._VALID_URL, url).groups()