def get_subtitle_path(video_path, language=None, extension='.srt'):
 subtitle_root = os.path.splitext(video_path)[0]
 if language:
  subtitle_root += ('.' + str(language))
 return (subtitle_root + extension)

def get_subtitle_path ( video_path , language = None , extension = '.srt' ) : subtitle_root = os . path . splitext ( video_path ) [ 0 ] if language : subtitle_root += ( '.' + str ( language ) ) return ( subtitle_root + extension )
get the subtitle path using the video_path and language .