[youtube] Show entire player URL when -v is given

This commit is contained in:
Philipp Hagemeister 2015-02-18 10:39:14 +01:00
parent 9cad27008b
commit 6d1a55a521
1 changed files with 7 additions and 2 deletions

View File

@ -541,16 +541,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
if cache_spec is not None: if cache_spec is not None:
return lambda s: ''.join(s[i] for i in cache_spec) return lambda s: ''.join(s[i] for i in cache_spec)
download_note = (
'Downloading player %s' % player_url
if self._downloader.params.get('verbose') else
'Downloading %s player %s' % (player_type, player_id)
)
if player_type == 'js': if player_type == 'js':
code = self._download_webpage( code = self._download_webpage(
player_url, video_id, player_url, video_id,
note='Downloading %s player %s' % (player_type, player_id), note=download_note,
errnote='Download of %s failed' % player_url) errnote='Download of %s failed' % player_url)
res = self._parse_sig_js(code) res = self._parse_sig_js(code)
elif player_type == 'swf': elif player_type == 'swf':
urlh = self._request_webpage( urlh = self._request_webpage(
player_url, video_id, player_url, video_id,
note='Downloading %s player %s' % (player_type, player_id), note=download_note,
errnote='Download of %s failed' % player_url) errnote='Download of %s failed' % player_url)
code = urlh.read() code = urlh.read()
res = self._parse_sig_swf(code) res = self._parse_sig_swf(code)