Nodes/arkennemasis Nodes/arkennemasis Story Record (remember it, once it rendered)
ComfyUI Node

arkennemasis Story Record (remember it, once it rendered)

Remembering a story only once it's actually a video

By Hishamahmer·Created about a month ago·Updated a day ago· 6
arkennemasis Story Record (remember it, once it rendered)
    • report
    url
    done
    history_file
    headline
    require_filetrue

    ArkStoryRecord is the bookkeeping node at the end of the arkennemasis avatar pipeline, and its design is one rule taken seriously: a run that failed has covered nothing, so it must not consume a story. It remembers that today's story was covered - but only once the finished video file actually exists. Wire it up and tomorrow's run picks something new. Skip it, or wire it wrong, and the channel covers the same story forever.

    How it works

    Three required inputs:

    • url - the story that was covered, wired from ArkStoryPick's url.
    • done - the finished video's path, from ArkVideoAssemble's final_path. This is what makes the node run last: ComfyUI only executes it once the video has been produced. And it's checked.
    • history_file - the exact same path ArkStoryHistory reads. Blank records nothing, and the run can then repeat itself tomorrow. This is the most common footgun: three nodes must agree on this path.

    The optional headline is recorded next to the URL so the picking model can avoid the same story from another publisher - a URL check alone can't catch that, since a different outlet will have a different URL. require_file (on by default) is the gate: only record if the video actually exists on disk. Turn it off only if you've moved the output elsewhere, and only if you understand what you're giving up.

    The node is also idempotent about its own job: it checks whether the story's URL is already in the history and doesn't write a duplicate. No file, no record - the run stays available for the next one.

    Output: just report, a plain-text line telling you what happened, e.g. whether the story was recorded or why it was left alone.

    Installing

    Standard pack install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Hishamahmer/comfyui-arkennemasis
    pip install replicate httpx
    

    Restart ComfyUI. Nothing extra needed - this node is pure file logic.

    Troubleshooting

    • The channel repeats stories despite the history node: the history_file paths don't match across ArkStoryHistory, ArkStoryPick, and this node. One typo breaks the loop.
    • "no finished video at ..., so ... was NOT recorded" - the gate working as intended. The render genuinely didn't finish, or the done path points somewhere the file doesn't exist. If the video is saved to a different folder, wire that actual path.
    • "no history_file, so nothing was remembered" - the run can and will repeat the story tomorrow. Fill the path in.
    Categoryarkennemasis/Avatar

    Inputs (5)

    NameTypeDefaultDescription
    urlSTRINGThe story that was covered. Wire ArkStoryPick's `url`.
    doneSTRINGThe finished video's path, from ArkVideoAssemble's `final_path`. This is what makes this node run LAST, and it is checked: no file, no record.
    history_fileSTRINGWhere the covered stories are remembered. The SAME path ArkStoryHistory reads. Blank records nothing, and the run can then repeat itself tomorrow.
    headlineoptSTRINGShown to the picking model next to the URL, so it can avoid the same STORY from another publisher — which the URL check cannot catch on its own.
    require_fileoptBOOLEANtrueOnly record if the video actually exists on disk. Turn this off only if you have moved the output elsewhere.

    Outputs (1)

    NameTypeDescription
    reportSTRING