fix(subscribestar): match gallery-dl's generic post delimiter (live-feed drift) #119
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fixes the SubscribeStar native live-feed
SubscribeStarDriftError("no posts and no recognizable feed container") seen on creator cheunart.Root cause (from reading gallery-dl's actual extractor)
gallery-dl's
_paginationsplits the feed on the generic delimiter<div class="post(trailing space). Our client keyed on<div class="post is-shown— butis-shownis added by SubscribeStar's infinite-scroll JS when a post scrolls into view. It's present in a browser-saved page (what the Step-0 characterization used) but absent from the raw server HTML we and gallery-dl actually fetch → the live feed parsed to zero posts → false drift.Verified the cookie domain was a red herring: gallery-dl switches
cookies_domainto.subscribestar.adultfor.adultcreators, exactly what ouraugment_cookiesalready does.Changes
_POST_OPEN→<div class="post(gallery-dl parity). The trailing space rules out the hyphenatedpost-content/post-date/post-body/post-uploadssiblings._get: a redirect to/verify_subscriberor/age_confirmation_warningnow raisesSubscribeStarAuthError(rotate cookies / age cookie) instead of surfacing as drift.is-shownnow parses; an age-wall redirect raises auth.Also carries the prior diagnostic commit (
_describe_pagenaming interstitials in drift errors).CI green on dev (run 1230).
🤖 Generated with Claude Code