The importer signs in with the first of the console's accounts that IMVU takes, reports refusals and whether the
account has Access Pass, and keeps the session so restarts don't sign in again. With it, it lists whole shops
signed in for the hub ("list" jobs) and looks up products the hub can't see before importing them, so Access Pass
products import too. IMVU's sign-in works only with a desktop browser's User-Agent, which signed-in requests send.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
3.1 KiB
3.1 KiB
t5de-importer
T5DE's importer (see README.md): it imports IMVU products, with their creators' grants, into a T5DE catalog. Part of
T5DE; the design is t5de-hub's docs/imports.md and the hub's importer API is docs/products.md ("For importers")
(git.t5de.dev/t5de/t5de-hub, usually checked out beside this one); CFLs and product file rules are t5de-api's cfl
and pack packages; it uploads to a t5de-catalog.
Rules
- Never commit IMVU's files or code: tests make their products in code (
internal/imvutest: a minimalindex.xml, fake textures), never with files downloaded from IMVU. - Never commit secrets (importer keys, key pairs, IMVU passwords, tokens). IMVU account passwords never reach the hub readable: the console seals them for the importer's key, and the importer keeps them sealed on disk.
- Test with a throwaway IMVU account, never a real one.
- Every setting is set on the hub's console (the user wants everything configurable from a UI); environment variables only for what's needed to reach the hub.
- Commits: author "dhkatz [email protected]"; never the user's real name or email.
- Changes reach main only through pull requests, squash-merged: the PR's title becomes the commit on main, so it must
be a conventional commit (
feat: …,fix(convert): …,docs: …;!before the colon for a breaking change), checked by.gitea/workflows/pull-request.yml. Commits on the branch can be anything. Push a branch and open the pull request on git.t5de.dev (web UI or API); the user merges. - Releases: release-bot keeps a
chore(release): vX.Y.Zpull request open (release.yml, git-cliff from those titles); merging it tags vX.Y.Z, which builds the image. Never tag by hand (v* tags are release-bot's). - Follow t5de-hub's
docs/products.mdanddocs/imports.mdexactly; change them there first if the contract needs to change. - Dependencies: the standard library and t5de-api (with its own). Ask before adding others.
Notes
gofmt,go vet ./...andgo test ./...must pass (CI checks them).- IMVU's CDN (verified 2026-11-07, t5de-hub's docs/imports.md "Spike"):
productdata/<id>/<revision>is the CFL (every entry and the directory LZMA-compressed),productdata/<id>/<revision>/<url>the files_contents.jsongives aurl(originals taggedoriginal; files only on the CDN). Revisions are numbered from 1 without gaps so far; the importer stops after 3 missing in a row. IMVU'sindex.xmlhas noProductRating. - IMVU's API, signed in (verified 2026-11-08):
POST /login {username, password, gdpr_cookie_acceptance, remember_device}sets session cookies (osCsid, ...);GET /login/meis the account. Sign-in works only with a desktop browser's User-Agent (imvu.BrowserUserAgent; anything else gets 500OUTBOUND VALIDATION-004,saucenull), so signed-in requests send it. IMVU limits sign-ins: keep sessions, don't retry refused passwords. A public profile'sis_apis false unless the member shows it; the account's own view says. Signed out, IMVU hides Access Pass products (401) and leaves them out of shop listings; the CDN serves their files to anyone.