]> jfr.im git - yt-dlp.git/blobdiff - youtube_dl/extractor/youtube.py
[arte] Mark dead code as such
[yt-dlp.git] / youtube_dl / extractor / youtube.py
index d09128555f87f962339be4eb13f51d95c76e615f..4aef85d0cafb1a9c7c4a2d66e257efc6f63ec3f7 100644 (file)
@@ -1,5 +1,4 @@
 # coding: utf-8
-from __future__ import absolute_import
 
 import json
 import netrc
@@ -343,7 +342,7 @@ def _real_initialize(self):
         request = compat_urllib_request.Request(self._AGE_URL, compat_urllib_parse.urlencode(age_form))
         try:
             self.report_age_confirmation()
-            age_results = compat_urllib_request.urlopen(request).read().decode('utf-8')
+            compat_urllib_request.urlopen(request).read().decode('utf-8')
         except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
             raise ExtractorError(u'Unable to confirm age: %s' % compat_str(err))
 
@@ -471,7 +470,7 @@ def _real_extract(self, url):
                     self._downloader.report_warning(sub_error)
 
         if self._downloader.params.get('listsubtitles', False):
-            sub_lang_list = self._list_available_subtitles(video_id)
+            self._list_available_subtitles(video_id)
             return
 
         if 'length_seconds' not in video_info:
@@ -480,9 +479,6 @@ def _real_extract(self, url):
         else:
             video_duration = compat_urllib_parse.unquote_plus(video_info['length_seconds'][0])
 
-        # token
-        video_token = compat_urllib_parse.unquote_plus(video_info['token'][0])
-
         # Decide which formats to download
         req_format = self._downloader.params.get('format', None)