projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c5e8d7a
)
[youtube] remove dead code
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 23 Jun 2013 17:59:40 +0000
(19:59 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 23 Jun 2013 17:59:40 +0000
(19:59 +0200)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index d09128555f87f962339be4eb13f51d95c76e615f..a7cb88b5a3e46e42f35f357573319f65af07da5f 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-343,7
+343,7
@@
class YoutubeIE(InfoExtractor):
request = compat_urllib_request.Request(self._AGE_URL, compat_urllib_parse.urlencode(age_form))
try:
self.report_age_confirmation()
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))
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
+471,7
@@
class YoutubeIE(InfoExtractor):
self._downloader.report_warning(sub_error)
if self._downloader.params.get('listsubtitles', False):
self._downloader.report_warning(sub_error)
if self._downloader.params.get('listsubtitles', False):
- s
ub_lang_list = s
elf._list_available_subtitles(video_id)
+ self._list_available_subtitles(video_id)
return
if 'length_seconds' not in video_info:
return
if 'length_seconds' not in video_info:
@@
-480,9
+480,6
@@
class YoutubeIE(InfoExtractor):
else:
video_duration = compat_urllib_parse.unquote_plus(video_info['length_seconds'][0])
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)
# Decide which formats to download
req_format = self._downloader.params.get('format', None)