def get_subtitle_file_path(lang_code=None, youtube_id=None):
 srt_path = os.path.join(settings.STATIC_ROOT, 'srt')
 if lang_code:
  srt_path = os.path.join(srt_path, lcode_to_django_dir(lang_code), 'subtitles')
 if youtube_id:
  srt_path = os.path.join(srt_path, (youtube_id + '.vtt'))
 return srt_path

def get_subtitle_file_path ( lang_code = None , youtube_id = None ) : srt_path = os . path . join ( settings . STATIC_ROOT , 'srt' ) if lang_code : srt_path = os . path . join ( srt_path , lcode_to_django_dir ( lang_code ) , 'subtitles' ) if youtube_id : srt_path = os . path . join ( srt_path , ( youtube_id + '.vtt' ) ) return srt_path
both central and distributed servers must make these available at a web-accessible location .