'Create an :class:`ExternalSubtitle` from path'

@classmethod
def from_path(cls, path):

    extension = None
    for e in EXTENSIONS:
        if path.endswith(e):
            extension = e
            break
    if (extension is None):
        raise ValueError('Not    a    supported    subtitle    extension')
    language = Language(os.path.splitext(path[:(len(path) - len(extension))])[1][1:], strict=False)
    return cls(path, language)
