So the plugin keeps re-downloading CSV files from HF every time ComfyUI is initialized, because there is no Last-Modified header on HF. Can't we just check for the checksum? Sometimes there's a connection problem to HF, so the file couldn't be downloaded, and ComfyUI got stuck at the init phase.
[Autocomplete-Plus] Checking HuggingFace dataset newtextdoc1111/danbooru-tag-csv for file updates...
[Autocomplete-Plus] 'Last-Modified' header not found for danbooru_tags.csv at https://huggingface.co/datasets/newtextdoc1111/danbooru-tag-csv/resolve/main/danbooru_tags.csv
[Autocomplete-Plus] Failed to get remote last modified time for danbooru_tags.csv.
[Autocomplete-Plus] 'Last-Modified' header not found for danbooru_tags_cooccurrence.csv at https://huggingface.co/datasets/newtextdoc1111/danbooru-tag-csv/resolve/main/danbooru_tags_cooccurrence.csv
[Autocomplete-Plus] Failed to get remote last modified time for danbooru_tags_cooccurrence.csv.
[Autocomplete-Plus] Could not update all remote timestamps from HuggingFace. Will try again later.
[Autocomplete-Plus] Queuing download for danbooru_tags.csv: Invalid timestamp format for danbooru_tags.csv. Forcing download to ensure integrity.
[Autocomplete-Plus] Attempting to download danbooru_tags.csv from https://huggingface.co/datasets/newtextdoc1111/danbooru-tag-csv/resolve/main/danbooru_tags.csv
[Autocomplete-Plus] Successfully downloaded and moved danbooru_tags.csv to D:\@StableDiffusion\ComfyUI\ComfyUI\custom_nodes\comfyui-autocomplete-plus\data\danbooru_tags.csv.
[Autocomplete-Plus] Queuing download for danbooru_tags_cooccurrence.csv: Invalid timestamp format for danbooru_tags_cooccurrence.csv. Forcing download to ensure integrity.
[Autocomplete-Plus] Attempting to download danbooru_tags_cooccurrence.csv from https://huggingface.co/datasets/newtextdoc1111/danbooru-tag-csv/resolve/main/danbooru_tags_cooccurrence.csv
[Autocomplete-Plus] Successfully downloaded and moved danbooru_tags_cooccurrence.csv to D:\@StableDiffusion\ComfyUI\ComfyUI\custom_nodes\comfyui-autocomplete-plus\data\danbooru_tags_cooccurrence.csv.
So the plugin keeps re-downloading CSV files from HF every time ComfyUI is initialized, because there is no Last-Modified header on HF. Can't we just check for the checksum? Sometimes there's a connection problem to HF, so the file couldn't be downloaded, and ComfyUI got stuck at the init phase.