]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vvvvid] do not cache the conn_id
authorRemita Amine <remitamine@gmail.com>
Fri, 16 Dec 2016 10:04:58 +0000 (11:04 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 16 Dec 2016 10:05:46 +0000 (11:05 +0100)
youtube_dl/extractor/vvvvid.py

index 04fe2e89f66f5da9038c063673153482bf9909db..d44ec85fd8955c21a55b187a597ed2766b10befb 100644 (file)
@@ -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()