def METHOD_NAME(album, filename, media=None):
    if not media:
        ext = os.path.splitext(filename)[1]
        ext_ignore = album.settings.get("nonmedia_files_options", {}).get(
            "ignore_ext", DEFAULT_CONFIG["ignore_ext"]
        )
        if ext in ext_ignore:
            logger.info("Ignoring non-media file: %s", filename)
        else:
            logger.info("Registering non-media file: %s", filename)
            return NonMedia(filename, album.path, album.settings)