- CLIENT_ID = YOUR_CLIENt_ID was not a string, so importing the node raised NameError and it never appeared in ComfyUI until the source was edited. The client ID is now read from onedrive_config.json next to the node or the ONEDRIVE_CLIENT_ID environment variable, and the MSAL app is created on first use, so a missing ID shows a clear message instead of a crash. - Folder/file paths are URL-encoded; folder names containing '#', '%' or '?' previously uploaded to the wrong place or failed. - Uploads have a timeout (they could hang the queue forever) and reuse one HTTP connection per batch. - Token cache is loaded once instead of from disk on every run. - File numbering uses an in-memory counter instead of creating an empty marker file in the temp folder for every image. - Added requirements.txt (msal was never declared) and a .gitignore so the sign-in token and client ID are never committed. - README: setup steps for the client ID; corrected the filename description. Version 1.1.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Lm4YDXhwj49hAA1RKS58Q
14 lines
379 B
Python
14 lines
379 B
Python
from .SaveImageToOneDrive_CreepyBits import NODE_CLASS_MAPPINGS as nodes_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as nodes_NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
__version__ = "1.1.0"
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
**nodes_NODE_CLASS_MAPPINGS,
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
**nodes_NODE_DISPLAY_NAME_MAPPINGS,
|
|
}
|
|
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|