# Changelog of Bilibili User Videos (`opspilot.cc/bilibili-user-videos`) Actor

- **URL**: https://apify.com/opspilot.cc/bilibili-user-videos/changelog.md
- **Full Actor documentation**: https://apify.com/opspilot.cc/bilibili-user-videos.md

## Changelog

### \[0.5] - 2026-11-09

- A free plan now gets a capped slice of a run: 2 channels x 30 videos over 2
  pages each, with no comment/danmaku counters. The cap is on upstream requests,
  which is what a run costs — uncapped, one run could spend 20 channels x (10 + 1)
  requests against a single actor-start charge that, on a free plan, is deducted
  from the caller's own Apify credit and never reaches us. Paying callers are
  unchanged: same 20 channels, 200 videos, 10 pages, 30 enriched.
- Truncation is reported, never thrown: a capped run writes a `notice` row and
  sets `appliedLimits.capped` in SUMMARY, and still ends SUCCEEDED.

### \[0.4] - 2026-10-12

- The run can no longer be killed by the key-value store. Under
  `LIMITED_PERMISSIONS` — how Apify's automated QA and every API-triggered run
  starts an Actor — opening the store is refused with HTTP 403
  (`KeyValueStoreCollectionClient.getOrCreate`, path `/v2/key-value-stores`).
  That call sat in a `||` fallback chain and was never inside a `try/catch` of
  ours, so the throw ended the run with exit code 91 and a reported FAILED run
  with zero items. Every store open now goes through a wrapper that returns a
  no-op store instead of throwing, so the free-run counter and the run SUMMARY
  degrade and the actual work proceeds.
- The gate store's name-to-id lookup no longer depends on the store still being
  on the first page. There is no GET-by-name endpoint, so the lookup pages
  through `/v2/key-value-stores`; it used a fixed `limit=50`, which silently
  stopped containing gate stores once the account passed 50 of them — and the
  account creates a new default store on every run, so that list grows on its
  own. The lookup now pages (100 per page, up to 20 pages).

### \[0.3] - 2026-10-09

#### Changed

- README: added three sections before Quick start - what you can use it for, who it fits, and who it does **not** fit. The last section now names the Actor's real limits (what it cannot reach, which field is unavailable, which reading of a metric is wrong), so a buyer can tell whether it is the wrong tool before paying.

### \[0.2] - 2026-10-08

- KV writes and status messages can no longer hang the run. Under
  `LIMITED_PERMISSIONS` these calls do not merely fail — they can return a
  promise that never resolves. Measured on a live run of a sibling Actor:
  results were fetched successfully, then the following `setValue` never
  returned and the run sat for 49 minutes before being aborted with an empty
  dataset and a paid bill, and not one error in the log. `try/catch` cannot
  help there — it catches a rejection, not a promise that never settles. Every
  bookkeeping write now races a 15s timeout and reports the failure as
  non-fatal, so a stuck store costs one summary field instead of the whole run.

### 0.1 (2026-10-05)

- Initial release. One dataset row per Bilibili video: title, description, views, comments, danmaku, favourites, duration in seconds plus the original text, publish time, cover, paid/course flags and a direct link, with a per-channel summary of median and total views, median comments/danmaku, the danmaku-to-view ratio, publish date range and the five most-viewed videos.
- Input accepts channel uids and `space.bilibili.com/<uid>` URLs, up to 20 channels and 200 videos each, with `order` (pubdate/click/dm/stow) and `enrichTop` (0-30, default 20).
- Two data sources by measurement, not by documentation: the listing is read from the v2 leg (stable, no pagination ceiling, view counts only, and it reports a truer channel total — 502 vs 491 on the same channel), while the top `enrichTop` videos per channel are re-read through the leg that carries comment and danmaku counts. That second leg returns HTTP 400 intermittently for the same uid, so 400 is retried and, if it still fails, the affected columns stay `null` and the summary reports `rowsWithCounters` / `rowsMissingCounters` rather than reporting zero engagement.
- Measured quirks handled: every documented `order` value returns HTTP 400, so ordering is applied locally and disclosed via `sortApplied: local`; the two legs use different payload shapes (`archives` + `page.total` vs `list.vlist` + `page.count`) and different field names (`stat.view` / seconds vs `play` / `MM:SS`), and both are read; `comment` and `video_review` are separate counters and are never merged; protocol-relative covers are made absolute.
- Free tier: 5 runs/day (counter persisted in a cross-run named KV store).
