@ -2650,18 +2650,19 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
"""
"""
@returns ( manifest_url , manifest_stream_number , is_live ) or None
@returns ( manifest_url , manifest_stream_number , is_live ) or None
"""
"""
with lock :
for retry in self . RetryManager ( fatal = False ) :
refetch_manifest ( format_id , delay )
with lock :
refetch_manifest ( format_id , delay )
f = next ( ( f for f in formats if f [ ' format_id ' ] == format_id ) , None )
if not f :
f = next ( ( f for f in formats if f [ ' format_id ' ] == format_id ) , None )
if not is_live :
if not f :
self . to_screen ( f ' { video_id } : Video is no longer live ' )
if not is_live :
else :
retry . error = f ' { video_id } : Video is no longer live '
self . report_warning (
else :
f ' Cannot find refreshed manifest for format { format_id } { bug_reports_message ( ) } ' )
retry . error = f ' Cannot find refreshed manifest for format { format_id } { bug_reports_message ( ) } '
return None
continue
return f [ ' manifest_url ' ] , f [ ' manifest_stream_number ' ] , is_live
return f [ ' manifest_url ' ] , f [ ' manifest_stream_number ' ] , is_live
return None
for f in formats :
for f in formats :
f [ ' is_live ' ] = is_live
f [ ' is_live ' ] = is_live