5.4 KiB
5.4 KiB
Progress
One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.
2026-12-01 — fm commands moved from Last.fm to ListenBrainz (no plan, owner request)
- Done: backup tag
lastfm-api-backup(pushed).src/commands/lastfm/api.rsnow reads ListenBrainz and turns results into the old Last.fm shape, so views/extras barely changed. Top lists, recent, profile, now playing, Who Knows, chart, Pixel Jumble, lyrics all on ListenBrainz + Cover Art Archive; lyrics title search on Deezer. Help, dashboard, website and privacy text updated. - Fixed on the way: MusicBrainz/Wikimedia refused the bare
Deziouser agent (403/503), so artist photos never loaded; they now getDezio/<version> (Discord bot). - Verified:
cargo build;cargo test(only failures are worktree-only missingassets/dataand ROMs);cargo test listenbrainz_live -- --ignoredagainst the public userrob. - Not done: not tested in Discord 🧑; not deployed. Everyone must link again (
/fm mode:link), ListenBrainz names can differ from Last.fm ones. - Differences: periods are ListenBrainz's (last week/month/quarter/half-year, this year), not rolling; stats update about once a day; Who Knows and "plays of this track" only see each person's all-time top 1000.
2026-12-01 — covers and artist photos with fallbacks (owner request)
- Done:
covers.rs(cover chain, artist photos, missing album names via Deezer); listens keep the player's tag IDs (mbids), tags win over ListenBrainz's guess; play counts and Who Knows match by ID first. Every card, chart and Pixel Jumble uses it. - Verified:
cargo test(same 8 worktree-only asset failures);cargo test covers_live -- --ignoredandlistenbrainz_livepass. - Not done: not deployed at commit time; not checked in Discord 🧑.
2026-12-01 — S001 uploads by speed
- Done:
media::budget_for/upload_budget(ctx)withUPLOAD_SECONDS=75 andUPLOAD_BYTES_PER_SEC=114_000 (reuse in S002, S008). Real limit 10 MiB./downloadplans by budget, retries only reset/429/5xx, timeout becomes a website link. Convert and /media use the budget. - Verified:
cargo checkonly. /download video still over budget after compress goes out as a link. Music card already drops to a still on a slow line; quote/games send small images, left as is. Not done: link for audio/gallery over budget; per-call HTTP timeout (twilight sets one timeout per client).
Later
- Per-request shorter timeout for plain Discord API calls: not done in S001.
2026-12-01 — S002 outbound timeouts
- Done: audit found most spawns and HTTP calls already limited. Fixed:
ffmpeg::probe(no limit),ffmpeg::inspect(no kill), music stream and peaks (ffmpeg-rw_timeout20 s idle, peaks read idle 30 s). Helper staysdownload::tools::run_lines. - Verified:
cargo checkonly. Not done:bail_user!rewrite of the plain timeout strings; not tested. - S002 follow-up: timeout texts reworded in plain words (
ffmpeg::run,ytdl::extract, VirusTotal wait). They are NOTbail_user!: those helpers returnResult<_, String>(bail_user needs the command error type), and every caller already shows the string as a "❌ ..." reply.download/tools.rsalready usesDlError::usercards. Turning the helpers intoUserErrorwould touch many callers; left for later.
2026-12-01 — S003 recovery and shaping
- Done: gateway exits (systemd restarts) after 10 min of failed reconnects or when all shards stop; voice driver retries 8, watcher rejoins 3 times then leaves with a notice and clears the player. Shaping cap kept at 800 kbit (comment with numbers).
- Verified:
cargo checkonly. Not tested, not deployed,dezio-shapenot reinstalled, no upload measured.
2026-12-01 — S004 /image removed, /caption added
- Done:
/image+D!fxand all effects/filters gone./caption+D!caption(optionssource-attachment,source-link,text; no source = latest media in channel viaconvert::last_chat_media). Still → PNG (JPEG if too big); GIF/animated WebP → GIF; video → MP4 (no sound, 10 s, 12 fps, 480 px max). Help and website text updated. - Shared helpers for S005:
images::pick_opt,convert::last_chat_media,images::frames_of,encode_gif,caption_image/caption_videopattern (band +stack),ffmpeg::Scratch+ffmpeg::run./speechbubbleis not added yet (S005). - Verified:
cargo checkonly. Not tested, not checked in Discord 🧑.
2026-12-01 — S005 /speechbubble
- Done:
/speechbubble+D!speechbubble(aliasbubble; optionssource-attachment,source-link,position,flip,solid; prefix wordsbottom flip solid). Purebubble_mask+draw_bubbleinimages.rs. Still → PNG, GIF/WebP → GIF (transparent), video → transparent GIF, or MP4 withsolid. Video frame loop shared asmap_frames(caption uses it too). - Verified:
cargo checkonly. Not tested, shape not compared with the reference GIFs, not checked in Discord 🧑 (S011). Seedocs/tests/S005-speechbubble.mddoubts (GIF transparency, no anti-aliasing).
2026-12-01 — S006 fm on ListenBrainz
- Done: audit of every fm feature; code was already fully on ListenBrainz/MusicBrainz, no Last.fm API leftovers in src. Only fix:
docs/topgg.mdwording. Test list indocs/tests/S006-fm.md. - Dropped from cards: listeners, global plays, bio, tags (none were shown). Profile realname/country are skipped when empty.
- Verified: grep and
cargo checkonly. Not tested in Discord 🧑. No new unit test (no new logic; api.rs already has sample-JSON tests).