def valid_video_file(self, file): """Verify file is supported by Youtube Freeseer currently encodes to .ogg and .webm TODO: expand list to all types supported by Youtube Args: file: path to file to verify Returns: True if file is supported """ return file.lower().endswith(('.ogg', '.webm'))
def valid_video_file(file): """Verify file is supported by Youtube Freeseer currently encodes to .ogg and .webm TODO: expand list to all types supported by Youtube Args: file: path to file to verify Returns: True if file is supported """ return file.lower().endswith(('.ogg', '.webm'))
def __joinpath(path,file): """Join PATH and FILE """ return os.path.join(path + os.sep + file.lower())