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.