@ -1022,7 +1022,7 @@ class YoutubeDL(object):
if self . params . get ( ' listsubtitles ' , False ) :
if self . params . get ( ' listsubtitles ' , False ) :
self . list_subtitles ( info_dict [ ' id ' ] , info_dict . get ( ' subtitles ' ) )
self . list_subtitles ( info_dict [ ' id ' ] , info_dict . get ( ' subtitles ' ) )
return
return
info_dict [ ' subtitles' ] = self . process_subtitles ( info_dict [ ' id ' ] , info_dict . get ( ' subtitles ' ) )
info_dict [ ' requested_ subtitles' ] = self . process_subtitles ( info_dict [ ' id ' ] , info_dict . get ( ' subtitles ' ) )
# This extractors handle format selection themselves
# This extractors handle format selection themselves
if info_dict [ ' extractor ' ] in [ ' Youku ' ] :
if info_dict [ ' extractor ' ] in [ ' Youku ' ] :
@ -1301,10 +1301,10 @@ class YoutubeDL(object):
subtitles_are_requested = any ( [ self . params . get ( ' writesubtitles ' , False ) ,
subtitles_are_requested = any ( [ self . params . get ( ' writesubtitles ' , False ) ,
self . params . get ( ' writeautomaticsub ' ) ] )
self . params . get ( ' writeautomaticsub ' ) ] )
if subtitles_are_requested and ' subtitles ' in info_dict and info_dict [ ' subtitles ' ] :
if subtitles_are_requested and info_dict . get ( ' requested_subtitles ' ) :
# subtitles download errors are already managed as troubles in relevant IE
# subtitles download errors are already managed as troubles in relevant IE
# that way it will silently go on when used with unsupporting IE
# that way it will silently go on when used with unsupporting IE
subtitles = info_dict [ ' subtitles' ]
subtitles = info_dict [ ' requested_ subtitles' ]
for sub_lang , sub_info in subtitles . items ( ) :
for sub_lang , sub_info in subtitles . items ( ) :
sub_format = sub_info [ ' ext ' ]
sub_format = sub_info [ ' ext ' ]
if sub_info . get ( ' data ' ) is not None :
if sub_info . get ( ' data ' ) is not None :