def get_bumper_settings(video):
 bumper_settings = copy.deepcopy(getattr(video, 'video_bumper', {}))
 for (lang, transcript_url) in bumper_settings.get('transcripts', {}).items():
  bumper_settings['transcripts'][lang] = transcript_url.replace('/static/', '')
 return bumper_settings

def get_bumper_settings ( video ) : bumper_settings = copy . deepcopy ( getattr ( video , 'video_bumper' , { } ) ) for ( lang , transcript_url ) in bumper_settings . get ( 'transcripts' , { } ) . items ( ) : bumper_settings [ 'transcripts' ] [ lang ] = transcript_url . replace ( '/static/' , '' ) return bumper_settings
get bumper settings from video instance .