dev/refactor #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/refactor"
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 changed
Critical fix — Plex sync hang
The app would hang indefinitely after logging "Syncing Plex labels for N items..."
and never schedule the next run. One stuck HTTP request inside p-queue's
addAllwould block the entire batch with no per-task timeout. Could sit like that for days.
Replaced p-queue with
Promise.allSettled+ a per-taskwithTimeouton everyPlex item. One stuck request times out in 30s and logs an error, the rest continue.
Pipeline restructure
they actually exist in the library
by the time the Plex phase runs
Dropped p-queue, Bottleneck handles concurrency
src/util/queues.ts→src/util/limiters.tsretry.tsnow uses exponential backoff with per-attempt timeoutsConsolidated Letterboxd scraper
Three near-identical scrapers (
list.ts,collections.ts,popular.ts) plusa base class, collapsed into a single
letterboxd.ts. Also droppedfetchfor Axios to match patterns
Serializd fixes
listItemskey with a singularseasonIdper item, notshows/itemswithseasonIdsPublish script (Depreciated)
main()into named phase functions for readabilityFiles deleted
src/api/plex.ts,src/api/radarr.ts,src/api/sonarr.ts— replaced byflat
src/plex.ts,src/radarr.ts,src/sonarr.tssrc/scraper/list.ts,collections.ts,popular.ts,movie.ts,scraper.base.ts,scraper.interface.ts,index.ts— replaced bysrc/scraper/letterboxd.tssrc/util/queues.ts,src/util/tagHelper.ts,src/util/context.tsclosed by
8e29328482Pull request closed