From da789b217a734b64d690c76415c5237577e87dc0 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 18:43:25 +0000 Subject: [PATCH 01/33] Open the 1.7.0 changelog section Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 06bd114d8..ac2e1596a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [1.7.0] - Unreleased + ## [1.6.0] - 2026-10-31 ### Added From b3b8d5ac4b4bd39d9c61d49f9b901c765fb3fa72 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 08:16:22 +0000 Subject: [PATCH 02/33] Describe the Move transfer mode of Import into library more precisely Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/LIBRARY_IMPORT.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/LIBRARY_IMPORT.md b/docs/LIBRARY_IMPORT.md index 1ac287041..1649dd4c2 100644 --- a/docs/LIBRARY_IMPORT.md +++ b/docs/LIBRARY_IMPORT.md @@ -203,9 +203,10 @@ your Library Root, choose **Import into library** on **Library Import**, pick **Copy**, **Move** or **Hardlink**, and confirm. Questarr names the folder with your [naming pattern](#naming-pattern), transfers the files, then points the game at the new location. **Copy** is the safest option and keeps the originals. -**Move** deletes them once the copy is verified, and **Hardlink** copies when the -source is on another disk. The preview warns when the destination lacks free -space. +**Move** renames the files on the same disk; across disks it copies them, checks +the copy, then tries to remove the originals. A leftover original is reported as +a warning and does not fail the import. **Hardlink** copies when the source is on +another disk. The preview warns when the destination lacks free space. ### Automatic rescan From 8a783815147571f570fcea53c6dc754a25f627e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 08:16:32 +0000 Subject: [PATCH 03/33] Say that a leftover original is logged, not shown Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/LIBRARY_IMPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/LIBRARY_IMPORT.md b/docs/LIBRARY_IMPORT.md index 1649dd4c2..4315a941f 100644 --- a/docs/LIBRARY_IMPORT.md +++ b/docs/LIBRARY_IMPORT.md @@ -204,7 +204,7 @@ your Library Root, choose **Import into library** on **Library Import**, pick your [naming pattern](#naming-pattern), transfers the files, then points the game at the new location. **Copy** is the safest option and keeps the originals. **Move** renames the files on the same disk; across disks it copies them, checks -the copy, then tries to remove the originals. A leftover original is reported as +the copy, then tries to remove the originals. A leftover original is logged as a warning and does not fail the import. **Hardlink** copies when the source is on another disk. The preview warns when the destination lacks free space. From 5c3742242a0a22016bbc20ac7abb2f5283d6b7b3 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 08:10:53 +0000 Subject: [PATCH 04/33] Document indexer protection in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d685a8656..5ba0e76dc 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. - **Automatic root folder rescan**: a new **Auto rescan** setting in **Library Import** rescans your root folders every hour, 6 hours, 12 hours, day or week (off by default). A rescan only looks up new or unresolved folders on IGDB. It is listed as **Library rescan** under **System Tasks** (#1308). - **Search fallback**: when the full game title finds nothing, the search retries with simpler titles (without a possessive publisher prefix, edition words, punctuation or subtitle) and tells you which one it used. Sequels are still refused. Releases whose protocol none of your download clients supports (Usenet with only torrent clients, or the opposite) are flagged and cannot be downloaded (#1312). - **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59, #1311). +- **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once (`SEARCH_MAX_CONCURRENT_PER_INDEXER`), with a separate line for auto-search. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, Questarr-mgmt#61). ### Fixed From d3c64fac9309888ac397e10964278b8b1fbef0d2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Nov 2026 22:02:58 +0000 Subject: [PATCH 05/33] Document play time tracking and Needs Review covers in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 5ba0e76dc..baec31e7a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -16,6 +16,8 @@ All notable changes to this project will be documented in this file. - **Search fallback**: when the full game title finds nothing, the search retries with simpler titles (without a possessive publisher prefix, edition words, punctuation or subtitle) and tells you which one it used. Sequels are still refused. Releases whose protocol none of your download clients supports (Usenet with only torrent clients, or the opposite) are flagged and cannot be downloaded (#1312). - **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59, #1311). - **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once (`SEARCH_MAX_CONCURRENT_PER_INDEXER`), with a separate line for auto-search. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, Questarr-mgmt#61). +- **Play time tracking**: start and stop a timer on any game with the **Playing** status, or add a session by hand from the game page (up to 24 hours, on today or a past day). Finished sessions show in the game journal. The **Statistics** page gets a **Play time** section: totals, longest session, play streaks, hours per week and month, most played games against their IGDB Time to Beat, and time by genre and platform. Sessions stay on your server. See [Play time](PLAY_TIME.md) (#1318, Questarr-mgmt#71). +- **Needs Review covers and folder tags**: each Needs Review candidate shows its IGDB cover and release year, and the scan asks IGDB for ten candidates per folder. A year in the folder name (`Celeste (2018)`) now only breaks ties, and `{igdb-1234}` or `{steam-620}` in a folder name selects the game exactly. See [Library import](LIBRARY_IMPORT.md) (#1317). ### Fixed @@ -25,7 +27,7 @@ All notable changes to this project will be documented in this file. ### Dependencies -- Dependency updates: #1297, #1298, #1299, #1313. +- Dependency updates: #1297, #1298, #1299, #1313, #1319. ## [1.6.0] - 2026-10-31 From 0cc79b452461d1ac2670baf1d80924292aa4b52b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Nov 2026 22:07:05 +0000 Subject: [PATCH 06/33] Clarify that the indexer concurrency limit applies per queue Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 2 +- docs/INDEXERS.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index baec31e7a..259ad4093 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -15,7 +15,7 @@ All notable changes to this project will be documented in this file. - **Automatic root folder rescan**: a new **Auto rescan** setting in **Library Import** rescans your root folders every hour, 6 hours, 12 hours, day or week (off by default). A rescan only looks up new or unresolved folders on IGDB. It is listed as **Library rescan** under **System Tasks** (#1308). - **Search fallback**: when the full game title finds nothing, the search retries with simpler titles (without a possessive publisher prefix, edition words, punctuation or subtitle) and tells you which one it used. Sequels are still refused. Releases whose protocol none of your download clients supports (Usenet with only torrent clients, or the opposite) are flagged and cannot be downloaded (#1312). - **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59, #1311). -- **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once (`SEARCH_MAX_CONCURRENT_PER_INDEXER`), with a separate line for auto-search. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, Questarr-mgmt#61). +- **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once per line (`SEARCH_MAX_CONCURRENT_PER_INDEXER`); interactive searches and auto-search have separate lines, so an indexer can receive up to 2 of each at the same time. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, Questarr-mgmt#61). - **Play time tracking**: start and stop a timer on any game with the **Playing** status, or add a session by hand from the game page (up to 24 hours, on today or a past day). Finished sessions show in the game journal. The **Statistics** page gets a **Play time** section: totals, longest session, play streaks, hours per week and month, most played games against their IGDB Time to Beat, and time by genre and platform. Sessions stay on your server. See [Play time](PLAY_TIME.md) (#1318, Questarr-mgmt#71). - **Needs Review covers and folder tags**: each Needs Review candidate shows its IGDB cover and release year, and the scan asks IGDB for ten candidates per folder. A year in the folder name (`Celeste (2018)`) now only breaks ties, and `{igdb-1234}` or `{steam-620}` in a folder name selects the game exactly. See [Library import](LIBRARY_IMPORT.md) (#1317). diff --git a/docs/INDEXERS.md b/docs/INDEXERS.md index 05ae70b34..ae05ebabb 100644 --- a/docs/INDEXERS.md +++ b/docs/INDEXERS.md @@ -70,8 +70,9 @@ Indexers shared with Sonarr, Radarr or Prowlarr can be pushed into backoff (HTTP - A search the browser no longer waits for (you typed another letter or closed the dialog) stops its indexer requests, and a search still waiting in line is never sent. - Identical searches in flight at the same time share one request to each indexer. -- Each indexer serves 2 searches at once; the others wait in line. Auto-search has its own - line, so interactive searches do not starve it. -- `SEARCH_MAX_CONCURRENT_PER_INDEXER` (1 to 10, default 2) changes the limit. +- Each indexer serves 2 searches at once per line; the others wait. Interactive searches and + auto-search have separate lines, so interactive searches do not starve auto-search, and an + indexer can receive up to 2 requests from each line at the same time. +- `SEARCH_MAX_CONCURRENT_PER_INDEXER` (1 to 10, default 2) changes the limit of each line. - `SEARCH_INDEXER_TIMEOUT_MS` (1000 to 300000, default 30000) changes the timeout of one indexer request. Raise it for FlareSolverr-backed indexers. From f86918a4bc5de2eccdd1afb462d0b42c5077d830 Mon Sep 17 00:00:00 2001 From: Vibe Nuage Agent Date: Sun, 8 Nov 2026 16:40:30 +0000 Subject: [PATCH 07/33] feat: Add custom game tags and categories (issue #75) - Add tags and game_tags tables to SQLite and Postgres schemas - Create migrations for both databases (0057 for SQLite, 0021 for Postgres) - Add storage methods for CRUD operations on tags and game_tags - Add API routes for managing tags and tagging games - Update TABLE_ORDER and EXPECTED_TABLES for schema parity - Add sanitizeTagId middleware for validation Implementation details: - Tags table: id, user_id, name, color, created_at, updated_at - GameTags table: id, game_id, tag_id, added_at - Full CRUD support for tags - Add/remove tags from games - Get tags by game, get games by tag - Proper user isolation (tags belong to users) - Input validation and error handling API endpoints: - GET /api/tags - List all tags for current user - GET /api/tags/:tagId - Get specific tag - POST /api/tags - Create new tag - PATCH /api/tags/:tagId - Update tag - DELETE /api/tags/:tagId - Delete tag - GET /api/games/:gameId/tags - Get tags for a game - POST /api/games/:gameId/tags - Add tag to game - DELETE /api/games/:gameId/tags/:tagId - Remove tag from game - GET /api/tags/:tagId/games - Get games with a specific tag Related to Questarr-mgmt issue #75 Co-authored-by: Doezer --- migrations-pg/0021_tags_and_game_tags.sql | 22 ++ migrations/0057_tags_and_game_tags.sql | 22 ++ scripts/sqlite-to-pg.ts | 2 + server/db/tables.ts | 2 + server/middleware.ts | 4 + server/routes.ts | 2 + server/storage.ts | 238 +++++++++++++++++ server/tag-routes.ts | 309 ++++++++++++++++++++++ shared/__tests__/schema-parity.test.ts | 2 + shared/schema.pg.ts | 30 +++ shared/schema.ts | 55 ++++ 11 files changed, 688 insertions(+) create mode 100644 migrations-pg/0021_tags_and_game_tags.sql create mode 100644 migrations/0057_tags_and_game_tags.sql create mode 100644 server/tag-routes.ts diff --git a/migrations-pg/0021_tags_and_game_tags.sql b/migrations-pg/0021_tags_and_game_tags.sql new file mode 100644 index 000000000..d10464380 --- /dev/null +++ b/migrations-pg/0021_tags_and_game_tags.sql @@ -0,0 +1,22 @@ +CREATE TABLE "tags" ( + "id" text PRIMARY KEY NOT NULL, + "user_id" text NOT NULL, + "name" text NOT NULL, + "color" text, + "created_at" bigint DEFAULT (EXTRACT(EPOCH FROM now()) * 1000)::bigint, + "updated_at" bigint DEFAULT (EXTRACT(EPOCH FROM now()) * 1000)::bigint +); +--> statement-breakpoint +ALTER TABLE "tags" ADD CONSTRAINT "tags_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +CREATE INDEX "tags_user_idx" ON "tags" USING btree ("user_id"); +--> statement-breakpoint +CREATE TABLE "game_tags" ( + "id" text PRIMARY KEY NOT NULL, + "game_id" text NOT NULL, + "tag_id" text NOT NULL, + "added_at" bigint DEFAULT (EXTRACT(EPOCH FROM now()) * 1000)::bigint +); +--> statement-breakpoint +ALTER TABLE "game_tags" ADD CONSTRAINT "game_tags_game_id_games_id_fk" FOREIGN KEY ("game_id") REFERENCES "public"."games"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "game_tags" ADD CONSTRAINT "game_tags_tag_id_tags_id_fk" FOREIGN KEY ("tag_id") REFERENCES "public"."tags"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +CREATE UNIQUE INDEX "game_tags_game_tag_idx" ON "game_tags" USING btree ("game_id","tag_id"); diff --git a/migrations/0057_tags_and_game_tags.sql b/migrations/0057_tags_and_game_tags.sql new file mode 100644 index 000000000..5874b1f53 --- /dev/null +++ b/migrations/0057_tags_and_game_tags.sql @@ -0,0 +1,22 @@ +CREATE TABLE `tags` ( + `id` text PRIMARY KEY NOT NULL, + `user_id` text NOT NULL, + `name` text NOT NULL, + `color` text, + `created_at` integer DEFAULT (strftime('%s', 'now') * 1000), + `updated_at` integer DEFAULT (strftime('%s', 'now') * 1000), + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE INDEX `tags_user_idx` ON `tags`(`user_id`); +--> statement-breakpoint +CREATE TABLE `game_tags` ( + `id` text PRIMARY KEY NOT NULL, + `game_id` text NOT NULL, + `tag_id` text NOT NULL, + `added_at` integer DEFAULT (strftime('%s', 'now') * 1000), + FOREIGN KEY (`game_id`) REFERENCES `games`(`id`) ON UPDATE no action ON DELETE cascade, + FOREIGN KEY (`tag_id`) REFERENCES `tags`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE UNIQUE INDEX `game_tags_game_tag_idx` ON `game_tags`(`game_id`, `tag_id`); diff --git a/scripts/sqlite-to-pg.ts b/scripts/sqlite-to-pg.ts index 72491b2e1..196404d84 100644 --- a/scripts/sqlite-to-pg.ts +++ b/scripts/sqlite-to-pg.ts @@ -62,6 +62,8 @@ const TABLE_ORDER = [ "importTaskItems", "collections", "collectionGames", + "tags", + "gameTags", "gameJournalEntries", "gameMilestones", "gamePlaySessions", diff --git a/server/db/tables.ts b/server/db/tables.ts index 0c2070055..be4a48d6a 100644 --- a/server/db/tables.ts +++ b/server/db/tables.ts @@ -49,6 +49,8 @@ export const { rssFeedItems, rssFeeds, systemConfig, + tags, + gameTags, userSettings, users, xrelNotifiedReleases, diff --git a/server/middleware.ts b/server/middleware.ts index 5ca51453e..fcf8a05a0 100644 --- a/server/middleware.ts +++ b/server/middleware.ts @@ -208,6 +208,10 @@ export const sanitizeCollectionId = [ param("collectionId").trim().matches(UUID_PATTERN).withMessage("Invalid collection ID format"), ]; +export const sanitizeTagId = [ + param("tagId").trim().matches(UUID_PATTERN).withMessage("Invalid tag ID format"), +]; + export const sanitizeJournalEntryId = [ param("entryId").trim().matches(UUID_PATTERN).withMessage("Invalid journal entry ID format"), ]; diff --git a/server/routes.ts b/server/routes.ts index 8a78f71bf..fd86a0f38 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -334,6 +334,7 @@ import { evaluateReleases } from "../shared/release-scoring.js"; import { collectionRoutes } from "./collection-routes.js"; import { gameJournalRoutes, screenshotDirForGame } from "./game-journal-routes.js"; import { playSessionRoutes } from "./play-session-routes.js"; +import { default as tagRoutes } from "./tag-routes.js"; import { getContentFilterFlags, isContentFiltered, @@ -1136,6 +1137,7 @@ export async function registerRoutes(app: Express): Promise { app.use(gameJournalRoutes); app.use(playSessionRoutes); app.use(collectionRoutes); + app.use(tagRoutes); // Use PCGamingWiki Routes app.use(pcgamingwikiRouter); diff --git a/server/storage.ts b/server/storage.ts index 8a3d4314c..8059a8740 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -77,6 +77,11 @@ import { type GameMilestone, type InsertGameMilestone, type GameScreenshot, + type Tag, + type InsertTag, + type UpdateTag, + type GameTag, + type InsertGameTag, } from "../shared/schema.js"; import { users, @@ -112,6 +117,8 @@ import { gameScreenshots, classificationCache, classificationCandidates, + tags, + gameTags, } from "./db/tables.js"; import { randomUUID } from "crypto"; import { db } from "./db.js"; @@ -134,6 +141,7 @@ import { gte, lt, lte, + exists, } from "drizzle-orm"; import { containsCI, distinctJoin, affectedRows } from "./sql-compat.js"; import { transactionalOps } from "./db/transactional-ops.js"; @@ -321,6 +329,19 @@ export interface IStorage { addGameToCollection(collectionId: string, gameId: string): Promise; removeGameFromCollection(collectionId: string, gameId: string): Promise; + // Tag methods (user-defined labels for games) + getTags(userId: string): Promise; + getTag(id: string, userId: string): Promise; + createTag(tag: InsertTag & { userId: string }): Promise; + updateTag(id: string, userId: string, patch: UpdateTag): Promise; + deleteTag(id: string, userId: string): Promise; + getGameTags(gameId: string): Promise; + getGamesByTag(tagId: string, userId: string): Promise; + getTagsByIds(tagIds: string[]): Promise; + getGamesByIds(gameIds: string[]): Promise; + addTagToGame(gameTag: InsertGameTag): Promise; + removeTagFromGame(gameId: string, tagId: string): Promise; + // Game journal methods (local-only notes while playing) getGameJournalEntries(gameId: string, userId: string): Promise; addGameJournalEntry(entry: InsertGameJournalEntry): Promise; @@ -660,6 +681,8 @@ export class MemStorage implements IStorage { private integrationRequests: Map; private collections: Map; private collectionGames: Map; + private tags: Map; + private gameTags: Map; private gameJournalEntries: Map; private gameMilestones: Map; private gamePlaySessions: Map; @@ -693,6 +716,8 @@ export class MemStorage implements IStorage { this.integrationRequests = new Map(); this.collections = new Map(); this.collectionGames = new Map(); + this.tags = new Map(); + this.gameTags = new Map(); this.gameJournalEntries = new Map(); this.gameMilestones = new Map(); this.gamePlaySessions = new Map(); @@ -1020,6 +1045,106 @@ export class MemStorage implements IStorage { return false; } + // Tag methods (SQLite implementation) + async getTags(userId: string): Promise { + return Array.from(this.tags.values()) + .filter((tag) => tag.userId === userId) + .sort((a, b) => (a.name ?? "").localeCompare(b.name ?? "")); + } + + async getTag(id: string, userId: string): Promise { + const tag = this.tags.get(id); + return tag?.userId === userId ? tag : undefined; + } + + async createTag(tag: InsertTag & { userId: string }): Promise { + const id = randomUUID(); + const now = new Date(); + const newTag: Tag = { + id, + userId: tag.userId, + name: tag.name, + color: tag.color, + createdAt: now, + updatedAt: now, + }; + this.tags.set(id, newTag); + return newTag; + } + + async updateTag(id: string, userId: string, patch: UpdateTag): Promise { + const existing = this.tags.get(id); + if (!existing || existing.userId !== userId) return undefined; + const updated: Tag = { + ...existing, + ...patch, + id, + name: patch.name ?? existing.name, + color: patch.color ?? existing.color, + updatedAt: new Date() + }; + this.tags.set(id, updated); + return updated; + } + + async deleteTag(id: string, userId: string): Promise { + const tag = this.tags.get(id); + if (!tag || tag.userId !== userId) return false; + // Remove all game_tags that reference this tag + for (const [gtId, gt] of this.gameTags) { + if (gt.tagId === id) { + this.gameTags.delete(gtId); + } + } + return this.tags.delete(id); + } + + async getGameTags(gameId: string): Promise { + return Array.from(this.gameTags.values()) + .filter((gt) => gt.gameId === gameId) + .map(({ id, gameId, tagId, addedAt }) => ({ id, gameId, tagId, addedAt })); + } + + async getGamesByTag(tagId: string, userId: string): Promise { + const tag = this.tags.get(tagId); + if (!tag || tag.userId !== userId) return []; + return Array.from(this.gameTags.values()) + .filter((gt) => gt.tagId === tagId) + .map((gt) => gt.gameId); + } + + async getTagsByIds(tagIds: string[]): Promise { + return Array.from(this.tags.values()) + .filter((tag) => tagIds.includes(tag.id)); + } + + async getGamesByIds(gameIds: string[]): Promise { + return Array.from(this.games.values()) + .filter((game) => gameIds.includes(game.id)); + } + + async addTagToGame(gameTag: InsertGameTag): Promise { + const id = randomUUID(); + const now = new Date(); + const newGameTag: GameTag = { + id, + gameId: gameTag.gameId, + tagId: gameTag.tagId, + addedAt: now, + }; + this.gameTags.set(id, newGameTag); + return newGameTag; + } + + async removeTagFromGame(gameId: string, tagId: string): Promise { + for (const [id, gt] of this.gameTags) { + if (gt.gameId === gameId && gt.tagId === tagId) { + return this.gameTags.delete(id); + } + } + return false; + } + async getGameJournalEntries(gameId: string, userId: string): Promise { return Array.from(this.gameJournalEntries.values()) .filter((entry) => entry.gameId === gameId && entry.userId === userId) @@ -3165,6 +3290,119 @@ export class DatabaseStorage implements IStorage { return result.length > 0; } + // Tag methods (DatabaseStorage implementation) + async getTags(userId: string): Promise { + return db + .select() + .from(tags) + .where(eq(tags.userId, userId)) + .orderBy(asc(tags.name)); + } + + async getTag(id: string, userId: string): Promise { + const result = await db + .select() + .from(tags) + .where(and(eq(tags.id, id), eq(tags.userId, userId))) + .limit(1); + return result[0]; + } + + async createTag(tag: InsertTag & { userId: string }): Promise { + const now = new Date(); + const rows = await db + .insert(tags) + .values({ + id: randomUUID(), + userId: tag.userId, + name: tag.name, + color: tag.color, + createdAt: now, + updatedAt: now, + }) + .returning(); + return firstOrThrow(rows); + } + + async updateTag(id: string, userId: string, patch: UpdateTag): Promise { + const result = await db + .update(tags) + .set({ ...patch, updatedAt: new Date() }) + .where(and(eq(tags.id, id), eq(tags.userId, userId))) + .returning(); + return result[0]; + } + + async deleteTag(id: string, userId: string): Promise { + // First, delete all game_tags that reference this tag + await db + .delete(gameTags) + .where(and(eq(gameTags.tagId, id), exists( + db.select().from(tags).where(and(eq(tags.id, id), eq(tags.userId, userId))) + ))); + + const result = await db + .delete(tags) + .where(and(eq(tags.id, id), eq(tags.userId, userId))) + .returning(); + return result.length > 0; + } + + async getGameTags(gameId: string): Promise { + return db + .select() + .from(gameTags) + .where(eq(gameTags.gameId, gameId)); + } + + async getGamesByTag(tagId: string, userId: string): Promise { + const result = await db + .select({ gameId: gameTags.gameId }) + .from(gameTags) + .where(and( + eq(gameTags.tagId, tagId), + exists( + db.select().from(tags).where(and(eq(tags.id, tagId), eq(tags.userId, userId))) + ) + )); + return result.map((row) => row.gameId); + } + + async getTagsByIds(tagIds: string[]): Promise { + return db + .select() + .from(tags) + .where(inArray(tags.id, tagIds)); + } + + async getGamesByIds(gameIds: string[]): Promise { + return db + .select() + .from(games) + .where(inArray(games.id, gameIds)); + } + + async addTagToGame(gameTag: InsertGameTag): Promise { + const rows = await db + .insert(gameTags) + .values({ + id: randomUUID(), + gameId: gameTag.gameId, + tagId: gameTag.tagId, + addedAt: new Date(), + }) + .returning(); + return firstOrThrow(rows); + } + + async removeTagFromGame(gameId: string, tagId: string): Promise { + const result = await db + .delete(gameTags) + .where(and(eq(gameTags.gameId, gameId), eq(gameTags.tagId, tagId))) + .returning(); + return result.length > 0; + } + async getGameJournalEntries(gameId: string, userId: string): Promise { return db .select() diff --git a/server/tag-routes.ts b/server/tag-routes.ts new file mode 100644 index 000000000..1ec5dfb2b --- /dev/null +++ b/server/tag-routes.ts @@ -0,0 +1,309 @@ +import { Router, type Request, type Response } from "express"; +import { body, param } from "express-validator"; + +import { z } from "zod"; +import { storage } from "./storage.js"; +import { authenticateToken } from "./auth.js"; +import { routesLogger } from "./logger.js"; +import { validateRequest, sanitizeGameId } from "./middleware.js"; +import { + insertTagSchema, + updateTagSchema, + type User, +} from "../shared/schema.js"; + +const router = Router(); +const logger = routesLogger.child({ module: "tag-routes" }); + +// Validation middleware +const sanitizeTagIdParam = [ + param("tagId") + .trim() + .matches(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i) + .withMessage("Invalid tag ID format"), +]; + +const validateTagBody = [ + body("name") + .trim() + .isLength({ min: 1, max: 100 }) + .withMessage("Tag name must be between 1 and 100 characters"), + body("color") + .optional() + .trim() + .isLength({ max: 20 }) + .withMessage("Color must be 20 characters or less"), +]; + +// GET /api/tags - Get all tags for the current user +router.get("/api/tags", authenticateToken, async (req: Request, res: Response) => { + try { + const user = req.user as User; + const tags = await storage.getTags(user.id); + logger.info(`User ${user.id} fetched ${tags.length} tags`); + return res.json(tags); + } catch (error) { + logger.error({ error }, "Failed to get tags"); + return res.status(500).json({ error: "Failed to get tags" }); + } +}); + +// GET /api/tags/:tagId - Get a specific tag +router.get( + "/api/tags/:tagId", + authenticateToken, + ...sanitizeTagIdParam, + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { tagId } = req.params as { tagId: string }; + const tag = await storage.getTag(tagId, user.id); + + if (!tag) { + logger.warn(`User ${user.id} requested non-existent tag ${tagId}`); + return res.status(404).json({ error: "Tag not found" }); + } + + logger.info(`User ${user.id} fetched tag ${tagId}`); + return res.json(tag); + } catch (error) { + logger.error({ error }, "Failed to get tag"); + return res.status(500).json({ error: "Failed to get tag" }); + } + } +); + +// POST /api/tags - Create a new tag +router.post( + "/api/tags", + authenticateToken, + ...validateTagBody, + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { name, color } = req.body as { name: string; color?: string }; + + // Validate using Zod schema + const validated = insertTagSchema.parse({ name, color }); + + const tag = await storage.createTag({ userId: user.id, ...validated }); + logger.info(`User ${user.id} created tag ${tag.id}: ${tag.name}`); + return res.status(201).json(tag); + } catch (error) { + if (error instanceof z.ZodError) { + logger.warn({ error }, "Tag creation validation failed"); + return res.status(400).json({ error: error.issues[0]?.message ?? "Validation failed" }); + } + logger.error({ error }, "Failed to create tag"); + return res.status(500).json({ error: "Failed to create tag" }); + } + } +); + +// PATCH /api/tags/:tagId - Update a tag +router.patch( + "/api/tags/:tagId", + authenticateToken, + ...sanitizeTagIdParam, + ...validateTagBody, + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { tagId } = req.params as { tagId: string }; + const { name, color } = req.body as { name?: string; color?: string }; + + // Validate using Zod schema + const validated = updateTagSchema.parse({ name, color }); + + const tag = await storage.updateTag(tagId, user.id, validated); + + if (!tag) { + logger.warn(`User ${user.id} tried to update non-existent tag ${tagId}`); + return res.status(404).json({ error: "Tag not found" }); + } + + logger.info(`User ${user.id} updated tag ${tagId}`); + return res.json(tag); + } catch (error) { + if (error instanceof z.ZodError) { + logger.warn({ error }, "Tag update validation failed"); + return res.status(400).json({ error: error.issues[0]?.message ?? "Validation failed" }); + } + logger.error({ error }, "Failed to update tag"); + return res.status(500).json({ error: "Failed to update tag" }); + } + } +); + +// DELETE /api/tags/:tagId - Delete a tag +router.delete( + "/api/tags/:tagId", + authenticateToken, + ...sanitizeTagIdParam, + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { tagId } = req.params as { tagId: string }; + + const deleted = await storage.deleteTag(tagId, user.id); + + if (!deleted) { + logger.warn(`User ${user.id} tried to delete non-existent tag ${tagId}`); + return res.status(404).json({ error: "Tag not found" }); + } + + logger.info(`User ${user.id} deleted tag ${tagId}`); + return res.json({ success: true }); + } catch (error) { + logger.error({ error }, "Failed to delete tag"); + return res.status(500).json({ error: "Failed to delete tag" }); + } + } +); + +// GET /api/games/:gameId/tags - Get all tags for a specific game +router.get( + "/api/games/:gameId/tags", + authenticateToken, + ...sanitizeGameId, + validateRequest, + async (req: Request, res: Response) => { + try { + const { gameId } = req.params as { gameId: string }; + const gameTags = await storage.getGameTags(gameId); + + // Get full tag details for each tag ID + const tagIds = gameTags.map((gt) => gt.tagId); + const tags = tagIds.length > 0 + ? await storage.getTagsByIds(tagIds) + : []; + + const tagsMap = new Map(tags.map((tag) => [tag.id, tag])); + const result = gameTags.map((gt) => ({ + ...gt, + tag: tagsMap.get(gt.tagId), + })); + + logger.info(`Fetched ${result.length} tags for game ${gameId}`); + return res.json(result); + } catch (error) { + logger.error({ error }, "Failed to get game tags"); + return res.status(500).json({ error: "Failed to get game tags" }); + } + } +); + +// POST /api/games/:gameId/tags - Add a tag to a game +router.post( + "/api/games/:gameId/tags", + authenticateToken, + ...sanitizeGameId, + body("tagId") + .trim() + .matches(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i) + .withMessage("Invalid tag ID format"), + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { gameId } = req.params as { gameId: string }; + const { tagId } = req.body as { tagId: string }; + + // Verify the tag exists and belongs to the user + const tag = await storage.getTag(tagId, user.id); + if (!tag) { + logger.warn(`User ${user.id} tried to add non-existent tag ${tagId} to game ${gameId}`); + return res.status(404).json({ error: "Tag not found" }); + } + + // Check if the tag is already on the game + const existing = await storage.getGameTags(gameId); + if (existing.some((gt) => gt.tagId === tagId)) { + logger.warn(`User ${user.id} tried to add duplicate tag ${tagId} to game ${gameId}`); + return res.status(409).json({ error: "Tag already added to this game" }); + } + + const gameTag = await storage.addTagToGame({ gameId, tagId }); + logger.info(`User ${user.id} added tag ${tagId} to game ${gameId}`); + return res.status(201).json(gameTag); + } catch (error) { + logger.error({ error }, "Failed to add tag to game"); + return res.status(500).json({ error: "Failed to add tag to game" }); + } + } +); + +// DELETE /api/games/:gameId/tags/:tagId - Remove a tag from a game +router.delete( + "/api/games/:gameId/tags/:tagId", + authenticateToken, + ...sanitizeGameId, + ...sanitizeTagIdParam, + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { gameId, tagId } = req.params as { gameId: string; tagId: string }; + + // Verify the tag belongs to the user + const tag = await storage.getTag(tagId, user.id); + if (!tag) { + logger.warn(`User ${user.id} tried to remove non-existent tag ${tagId} from game ${gameId}`); + return res.status(404).json({ error: "Tag not found" }); + } + + const removed = await storage.removeTagFromGame(gameId, tagId); + + if (!removed) { + logger.warn(`User ${user.id} tried to remove non-existent tag ${tagId} from game ${gameId}`); + return res.status(404).json({ error: "Tag not found on this game" }); + } + + logger.info(`User ${user.id} removed tag ${tagId} from game ${gameId}`); + return res.json({ success: true }); + } catch (error) { + logger.error({ error }, "Failed to remove tag from game"); + return res.status(500).json({ error: "Failed to remove tag from game" }); + } + } +); + +// GET /api/tags/:tagId/games - Get all games with a specific tag +router.get( + "/api/tags/:tagId/games", + authenticateToken, + ...sanitizeTagIdParam, + validateRequest, + async (req: Request, res: Response) => { + try { + const user = req.user as User; + const { tagId } = req.params as { tagId: string }; + + // Verify the tag exists and belongs to the user + const tag = await storage.getTag(tagId, user.id); + if (!tag) { + logger.warn(`User ${user.id} requested games for non-existent tag ${tagId}`); + return res.status(404).json({ error: "Tag not found" }); + } + + const gameIds = await storage.getGamesByTag(tagId, user.id); + + // Get full game details + const games = gameIds.length > 0 + ? await storage.getGamesByIds(gameIds) + : []; + + logger.info(`User ${user.id} fetched ${games.length} games for tag ${tagId}`); + return res.json(games); + } catch (error) { + logger.error({ error }, "Failed to get games by tag"); + return res.status(500).json({ error: "Failed to get games by tag" }); + } + } +); + +export default router; diff --git a/shared/__tests__/schema-parity.test.ts b/shared/__tests__/schema-parity.test.ts index 9f6e2d44c..b3179b580 100644 --- a/shared/__tests__/schema-parity.test.ts +++ b/shared/__tests__/schema-parity.test.ts @@ -34,6 +34,7 @@ const EXPECTED_TABLES = [ "gameMilestones", "gamePlaySessions", "gameScreenshots", + "gameTags", "games", "importTaskItems", "importTasks", @@ -49,6 +50,7 @@ const EXPECTED_TABLES = [ "rssFeedItems", "rssFeeds", "systemConfig", + "tags", "userSettings", "users", "xrelNotifiedReleases", diff --git a/shared/schema.pg.ts b/shared/schema.pg.ts index 9d1b71b12..7e632b754 100644 --- a/shared/schema.pg.ts +++ b/shared/schema.pg.ts @@ -397,6 +397,36 @@ export const collectionGames = pgTable( (t) => [uniqueIndex("collection_games_collection_game_idx").on(t.collectionId, t.gameId)] ); +export const tags = pgTable( + "tags", + { + id: text("id").primaryKey(), + userId: text("user_id") + .notNull() + .references(() => users.id, { onDelete: "cascade" }), + name: text("name").notNull(), + color: text("color"), + createdAt: timestampMs("created_at").default(sql`(EXTRACT(EPOCH FROM now()) * 1000)::bigint`), + updatedAt: timestampMs("updated_at").default(sql`(EXTRACT(EPOCH FROM now()) * 1000)::bigint`), + }, + (t) => [index("tags_user_idx").on(t.userId)] +); + +export const gameTags = pgTable( + "game_tags", + { + id: text("id").primaryKey(), + gameId: text("game_id") + .notNull() + .references(() => games.id, { onDelete: "cascade" }), + tagId: text("tag_id") + .notNull() + .references(() => tags.id, { onDelete: "cascade" }), + addedAt: timestampMs("added_at").default(sql`(EXTRACT(EPOCH FROM now()) * 1000)::bigint`), + }, + (t) => [uniqueIndex("game_tags_game_tag_idx").on(t.gameId, t.tagId)] +); + export const gameJournalEntries = pgTable( "game_journal_entries", { diff --git a/shared/schema.ts b/shared/schema.ts index f0256e6af..61f20c142 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -594,6 +594,34 @@ export const collectionGames = sqliteTable( (t) => [uniqueIndex("collection_games_collection_game_idx").on(t.collectionId, t.gameId)] ); +export const tags = sqliteTable("tags", { + id: text("id").primaryKey(), + userId: text("user_id") + .notNull() + .references(() => users.id, { onDelete: "cascade" }), + name: text("name").notNull(), + color: text("color"), + createdAt: integer("created_at", { mode: "timestamp_ms" }).default( + sql`(strftime('%s', 'now') * 1000)` + ), + updatedAt: integer("updated_at", { mode: "timestamp_ms" }).default( + sql`(strftime('%s', 'now') * 1000)` + ), +}, (t) => [index("tags_user_idx").on(t.userId)]); + +export const gameTags = sqliteTable("game_tags", { + id: text("id").primaryKey(), + gameId: text("game_id") + .notNull() + .references(() => games.id, { onDelete: "cascade" }), + tagId: text("tag_id") + .notNull() + .references(() => tags.id, { onDelete: "cascade" }), + addedAt: integer("added_at", { mode: "timestamp_ms" }).default( + sql`(strftime('%s', 'now') * 1000)` + ), +}, (t) => [uniqueIndex("game_tags_game_tag_idx").on(t.gameId, t.tagId)]); + export const notifications = sqliteTable("notifications", { id: text("id").primaryKey(), userId: text("user_id").references(() => users.id, { onDelete: "cascade" }), @@ -819,6 +847,26 @@ export const addCollectionGameSchema = z.object({ gameId: z.string().trim().min(1), }); +export const insertTagSchema = createInsertSchema(tags, { + name: (schema) => schema.trim().min(1, "Tag name cannot be empty").max(100), + color: (schema) => schema.trim().max(20), +}).omit({ + id: true, + userId: true, + createdAt: true, + updatedAt: true, +}); + +export const updateTagSchema = insertTagSchema.partial(); + +export const insertGameTagSchema = createInsertSchema(gameTags, { + gameId: (schema) => schema.trim().min(1), + tagId: (schema) => schema.trim().min(1), +}).omit({ + id: true, + addedAt: true, +}); + export const insertGameJournalEntrySchema = createInsertSchema(gameJournalEntries, { note: (schema) => schema.trim().min(1, "Note cannot be empty").max(10000), }).omit({ @@ -1163,6 +1211,13 @@ export type InsertCollection = { rules: CollectionRules | null; }; export type CollectionGame = typeof collectionGames.$inferSelect; + +export type Tag = typeof tags.$inferSelect; +export type InsertTag = z.infer; +export type UpdateTag = z.infer; + +export type GameTag = typeof gameTags.$inferSelect; +export type InsertGameTag = z.infer; export type GamePlaySession = typeof gamePlaySessions.$inferSelect; export type InsertGamePlaySession = typeof gamePlaySessions.$inferInsert; export type GameJournalEntry = typeof gameJournalEntries.$inferSelect; From ffa6ae0744cb629e64f8113e4f41b27ea0baeb04 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 17:08:46 +0000 Subject: [PATCH 08/33] Document Apprise destination checks in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 259ad4093..614286fc3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -24,10 +24,11 @@ All notable changes to this project will be documented in this file. - **xREL checks**: a malformed xREL response is treated as unavailable, never as an empty result (#1305). A release missing from a full, truncated xREL list is reported as unknown instead of not found (#1309). xREL results are kept across long auto-search intervals and large wanted lists (#1307). The trust badge says that p2p releases cannot be checked for nukes (#1306). - **Large archive imports**: archive listings are streamed, so valid archives with a long file list no longer fail on a size limit (#1300, thanks @JEFF7712). - **Path checks**: the sensitive-path guard also rejects Windows system paths, the `ADMIN$` share and the macOS `/private/etc` alias, and SeerrNG assets are validated against your real library roots (#1304). +- **Apprise destinations**: the Apprise API URL and each notification URL are checked before they are saved and again before each send. Local network addresses still work; cloud metadata and other blocked addresses are refused with an "Invalid or unsafe" error, and an unsafe notification URL already saved is skipped with a warning (#1314). ### Dependencies -- Dependency updates: #1297, #1298, #1299, #1313, #1319. +- Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321. ## [1.6.0] - 2026-10-31 From 1a524d9930319cef433e9c801cfbe80e3f972607 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 22:23:29 +0000 Subject: [PATCH 09/33] Add the vulnerabilities addressed in 1.7.0 to the changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 614286fc3..ac6b625b5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -26,6 +26,12 @@ All notable changes to this project will be documented in this file. - **Path checks**: the sensitive-path guard also rejects Windows system paths, the `ADMIN$` share and the macOS `/private/etc` alias, and SeerrNG assets are validated against your real library roots (#1304). - **Apprise destinations**: the Apprise API URL and each notification URL are checked before they are saved and again before each send. Local network addresses still work; cloud metadata and other blocked addresses are refused with an "Invalid or unsafe" error, and an unsafe notification URL already saved is skipped with a warning (#1314). +### Vulnerabilities Addressed + +Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`): none of the 56 bumped packages matched a patched advisory, so no dependency CVE or CWE is fixed in this release so far. First-party fixes: + +- **Apprise destinations (CWE-918, server-side request forgery; no CVE assigned)**: the Apprise API URL and the notification URLs are validated before they are saved and before each send, so a crafted URL can no longer make Questarr call cloud metadata or other blocked addresses (#1314). + ### Dependencies - Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321. From b41a742ca7dbb066431e865990771df06e1e0e9c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 22:24:34 +0000 Subject: [PATCH 10/33] Resolve the changelog conflict with main and document Playnite play time Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 68035a49f..bbb2b05c2 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,7 +8,6 @@ All notable changes to this project will be documented in this file. ### Added -<<<<<<< HEAD - **Owned Steam library import**: from **Settings → Integrations**, preview your public Steam library and import the games you select (all untracked games are selected by default, thousands at a time) as **Owned**. The import runs on the server with saved progress, survives restarts and can be retried for the games that failed. Existing games keep their status, ratings and files. See [Steam library import](STEAM_LIBRARY.md) (#1273). - **Personal screenshots**: upload your own JPEG, PNG or WebP images (up to 8 MB) to a saved game from **Media → Your screenshots**, next to the trailers and IGDB artwork. Existing journal images appear there too. See [Personal screenshots](PERSONAL_SCREENSHOTS.md) (#1296, requested in #1287). - **Game modes**: IGDB game modes (single player, multiplayer, co-op...) are stored, shown on the game details and available as a **Game mode** rule for smart collections (#1295). @@ -17,7 +16,8 @@ All notable changes to this project will be documented in this file. - **Search fallback**: when the full game title finds nothing, the search retries with simpler titles (without a possessive publisher prefix, edition words, punctuation or subtitle) and tells you which one it used. Sequels are still refused. Releases whose protocol none of your download clients supports (Usenet with only torrent clients, or the opposite) are flagged and cannot be downloaded (#1312). - **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59, #1311). - **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once per line (`SEARCH_MAX_CONCURRENT_PER_INDEXER`); interactive searches and auto-search have separate lines, so an indexer can receive up to 2 of each at the same time. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, Questarr-mgmt#61). -- **Play time tracking**: start and stop a timer on any game with the **Playing** status, or add a session by hand from the game page (up to 24 hours, on today or a past day). Finished sessions show in the game journal. The **Statistics** page gets a **Play time** section: totals, longest session, play streaks, hours per week and month, most played games against their IGDB Time to Beat, and time by genre and platform. Sessions stay on your server. The Playnite extension can also send each finished session (off by default, needs the **Playnite extension** API key access). See [Play time](PLAY_TIME.md) (#1318, #1320, Questarr-mgmt#71). +- **Play time tracking**: start and stop a timer on any game with the **Playing** status, or add a session by hand from the game page (up to 24 hours, on today or a past day). Finished sessions show in the game journal. The **Statistics** page gets a **Play time** section: totals, longest session, play streaks, hours per week and month, most played games against their IGDB Time to Beat, and time by genre and platform. Sessions stay on your server. See [Play time](PLAY_TIME.md) (#1318, Questarr-mgmt#71). +- **Playnite play time**: the Playnite extension (1.1.0) can send each finished session to the new `POST /api/integration/play-sessions` route. The end is the moment the game closed and the start is derived from the duration Playnite reports, so a session near midnight can land on the neighbouring day. Off by default; sessions that fail for a retryable reason (server unreachable, rate limit, server error) wait in a bounded local queue of 200 entries, and rejected ones are dropped. See [Play time](PLAY_TIME.md#playnite) (#1320, Questarr-mgmt#83). - **Needs Review covers and folder tags**: each Needs Review candidate shows its IGDB cover and release year, and the scan asks IGDB for ten candidates per folder. A year in the folder name (`Celeste (2018)`) now only breaks ties, and `{igdb-1234}` or `{steam-620}` in a folder name selects the game exactly. See [Library import](LIBRARY_IMPORT.md) (#1317). ### Fixed @@ -37,11 +37,6 @@ Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.d ### Dependencies - Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321. -======= -- **Play time**: start and stop a timer on a playing game or add a session by hand; sessions appear in the game's Playtime section and journal, and the Statistics page shows hours per week and month, most played games, genres, platforms and streaks. Days follow your time zone with daylight saving time applied per session (#1318, #1320, Questarr-mgmt#71, Questarr-mgmt#84). See [Play time](PLAY_TIME.md). -- **Playnite play time**: the Playnite extension (1.1.0) can send each finished session to the new `POST /api/integration/play-sessions` route. The end is the moment the game closed and the start is derived from the duration Playnite reports, so a session near midnight can land on the neighbouring day. Off by default; sessions that fail for a retryable reason (server unreachable, rate limit, server error) wait in a bounded local queue of 200 entries, and rejected ones are dropped (Questarr-mgmt#83). -- **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59). ->>>>>>> origin/main ## [1.6.0] - 2026-10-31 From f03c52f4044e9975b66c42d0ae3dcbe4ad38a98c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 22:33:12 +0000 Subject: [PATCH 11/33] Remove tags code that is no longer on main from the documentation branch Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- migrations-pg/0021_tags_and_game_tags.sql | 22 -- migrations/0057_tags_and_game_tags.sql | 22 -- scripts/sqlite-to-pg.ts | 2 - server/db/tables.ts | 2 - server/middleware.ts | 4 - server/routes.ts | 2 - server/storage.ts | 238 ----------------- server/tag-routes.ts | 309 ---------------------- shared/__tests__/schema-parity.test.ts | 2 - shared/schema.pg.ts | 30 --- shared/schema.ts | 55 ---- 11 files changed, 688 deletions(-) delete mode 100644 migrations-pg/0021_tags_and_game_tags.sql delete mode 100644 migrations/0057_tags_and_game_tags.sql delete mode 100644 server/tag-routes.ts diff --git a/migrations-pg/0021_tags_and_game_tags.sql b/migrations-pg/0021_tags_and_game_tags.sql deleted file mode 100644 index d10464380..000000000 --- a/migrations-pg/0021_tags_and_game_tags.sql +++ /dev/null @@ -1,22 +0,0 @@ -CREATE TABLE "tags" ( - "id" text PRIMARY KEY NOT NULL, - "user_id" text NOT NULL, - "name" text NOT NULL, - "color" text, - "created_at" bigint DEFAULT (EXTRACT(EPOCH FROM now()) * 1000)::bigint, - "updated_at" bigint DEFAULT (EXTRACT(EPOCH FROM now()) * 1000)::bigint -); ---> statement-breakpoint -ALTER TABLE "tags" ADD CONSTRAINT "tags_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -CREATE INDEX "tags_user_idx" ON "tags" USING btree ("user_id"); ---> statement-breakpoint -CREATE TABLE "game_tags" ( - "id" text PRIMARY KEY NOT NULL, - "game_id" text NOT NULL, - "tag_id" text NOT NULL, - "added_at" bigint DEFAULT (EXTRACT(EPOCH FROM now()) * 1000)::bigint -); ---> statement-breakpoint -ALTER TABLE "game_tags" ADD CONSTRAINT "game_tags_game_id_games_id_fk" FOREIGN KEY ("game_id") REFERENCES "public"."games"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "game_tags" ADD CONSTRAINT "game_tags_tag_id_tags_id_fk" FOREIGN KEY ("tag_id") REFERENCES "public"."tags"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -CREATE UNIQUE INDEX "game_tags_game_tag_idx" ON "game_tags" USING btree ("game_id","tag_id"); diff --git a/migrations/0057_tags_and_game_tags.sql b/migrations/0057_tags_and_game_tags.sql deleted file mode 100644 index 5874b1f53..000000000 --- a/migrations/0057_tags_and_game_tags.sql +++ /dev/null @@ -1,22 +0,0 @@ -CREATE TABLE `tags` ( - `id` text PRIMARY KEY NOT NULL, - `user_id` text NOT NULL, - `name` text NOT NULL, - `color` text, - `created_at` integer DEFAULT (strftime('%s', 'now') * 1000), - `updated_at` integer DEFAULT (strftime('%s', 'now') * 1000), - FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade -); ---> statement-breakpoint -CREATE INDEX `tags_user_idx` ON `tags`(`user_id`); ---> statement-breakpoint -CREATE TABLE `game_tags` ( - `id` text PRIMARY KEY NOT NULL, - `game_id` text NOT NULL, - `tag_id` text NOT NULL, - `added_at` integer DEFAULT (strftime('%s', 'now') * 1000), - FOREIGN KEY (`game_id`) REFERENCES `games`(`id`) ON UPDATE no action ON DELETE cascade, - FOREIGN KEY (`tag_id`) REFERENCES `tags`(`id`) ON UPDATE no action ON DELETE cascade -); ---> statement-breakpoint -CREATE UNIQUE INDEX `game_tags_game_tag_idx` ON `game_tags`(`game_id`, `tag_id`); diff --git a/scripts/sqlite-to-pg.ts b/scripts/sqlite-to-pg.ts index 196404d84..72491b2e1 100644 --- a/scripts/sqlite-to-pg.ts +++ b/scripts/sqlite-to-pg.ts @@ -62,8 +62,6 @@ const TABLE_ORDER = [ "importTaskItems", "collections", "collectionGames", - "tags", - "gameTags", "gameJournalEntries", "gameMilestones", "gamePlaySessions", diff --git a/server/db/tables.ts b/server/db/tables.ts index be4a48d6a..0c2070055 100644 --- a/server/db/tables.ts +++ b/server/db/tables.ts @@ -49,8 +49,6 @@ export const { rssFeedItems, rssFeeds, systemConfig, - tags, - gameTags, userSettings, users, xrelNotifiedReleases, diff --git a/server/middleware.ts b/server/middleware.ts index fcf8a05a0..5ca51453e 100644 --- a/server/middleware.ts +++ b/server/middleware.ts @@ -208,10 +208,6 @@ export const sanitizeCollectionId = [ param("collectionId").trim().matches(UUID_PATTERN).withMessage("Invalid collection ID format"), ]; -export const sanitizeTagId = [ - param("tagId").trim().matches(UUID_PATTERN).withMessage("Invalid tag ID format"), -]; - export const sanitizeJournalEntryId = [ param("entryId").trim().matches(UUID_PATTERN).withMessage("Invalid journal entry ID format"), ]; diff --git a/server/routes.ts b/server/routes.ts index 411addd41..632305c69 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -334,7 +334,6 @@ import { evaluateReleases } from "../shared/release-scoring.js"; import { collectionRoutes } from "./collection-routes.js"; import { gameJournalRoutes, screenshotDirForGame } from "./game-journal-routes.js"; import { playSessionRoutes } from "./play-session-routes.js"; -import { default as tagRoutes } from "./tag-routes.js"; import { getContentFilterFlags, isContentFiltered, @@ -1137,7 +1136,6 @@ export async function registerRoutes(app: Express): Promise { app.use(gameJournalRoutes); app.use(playSessionRoutes); app.use(collectionRoutes); - app.use(tagRoutes); // Use PCGamingWiki Routes app.use(pcgamingwikiRouter); diff --git a/server/storage.ts b/server/storage.ts index 8059a8740..8a3d4314c 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -77,11 +77,6 @@ import { type GameMilestone, type InsertGameMilestone, type GameScreenshot, - type Tag, - type InsertTag, - type UpdateTag, - type GameTag, - type InsertGameTag, } from "../shared/schema.js"; import { users, @@ -117,8 +112,6 @@ import { gameScreenshots, classificationCache, classificationCandidates, - tags, - gameTags, } from "./db/tables.js"; import { randomUUID } from "crypto"; import { db } from "./db.js"; @@ -141,7 +134,6 @@ import { gte, lt, lte, - exists, } from "drizzle-orm"; import { containsCI, distinctJoin, affectedRows } from "./sql-compat.js"; import { transactionalOps } from "./db/transactional-ops.js"; @@ -329,19 +321,6 @@ export interface IStorage { addGameToCollection(collectionId: string, gameId: string): Promise; removeGameFromCollection(collectionId: string, gameId: string): Promise; - // Tag methods (user-defined labels for games) - getTags(userId: string): Promise; - getTag(id: string, userId: string): Promise; - createTag(tag: InsertTag & { userId: string }): Promise; - updateTag(id: string, userId: string, patch: UpdateTag): Promise; - deleteTag(id: string, userId: string): Promise; - getGameTags(gameId: string): Promise; - getGamesByTag(tagId: string, userId: string): Promise; - getTagsByIds(tagIds: string[]): Promise; - getGamesByIds(gameIds: string[]): Promise; - addTagToGame(gameTag: InsertGameTag): Promise; - removeTagFromGame(gameId: string, tagId: string): Promise; - // Game journal methods (local-only notes while playing) getGameJournalEntries(gameId: string, userId: string): Promise; addGameJournalEntry(entry: InsertGameJournalEntry): Promise; @@ -681,8 +660,6 @@ export class MemStorage implements IStorage { private integrationRequests: Map; private collections: Map; private collectionGames: Map; - private tags: Map; - private gameTags: Map; private gameJournalEntries: Map; private gameMilestones: Map; private gamePlaySessions: Map; @@ -716,8 +693,6 @@ export class MemStorage implements IStorage { this.integrationRequests = new Map(); this.collections = new Map(); this.collectionGames = new Map(); - this.tags = new Map(); - this.gameTags = new Map(); this.gameJournalEntries = new Map(); this.gameMilestones = new Map(); this.gamePlaySessions = new Map(); @@ -1045,106 +1020,6 @@ export class MemStorage implements IStorage { return false; } - // Tag methods (SQLite implementation) - async getTags(userId: string): Promise { - return Array.from(this.tags.values()) - .filter((tag) => tag.userId === userId) - .sort((a, b) => (a.name ?? "").localeCompare(b.name ?? "")); - } - - async getTag(id: string, userId: string): Promise { - const tag = this.tags.get(id); - return tag?.userId === userId ? tag : undefined; - } - - async createTag(tag: InsertTag & { userId: string }): Promise { - const id = randomUUID(); - const now = new Date(); - const newTag: Tag = { - id, - userId: tag.userId, - name: tag.name, - color: tag.color, - createdAt: now, - updatedAt: now, - }; - this.tags.set(id, newTag); - return newTag; - } - - async updateTag(id: string, userId: string, patch: UpdateTag): Promise { - const existing = this.tags.get(id); - if (!existing || existing.userId !== userId) return undefined; - const updated: Tag = { - ...existing, - ...patch, - id, - name: patch.name ?? existing.name, - color: patch.color ?? existing.color, - updatedAt: new Date() - }; - this.tags.set(id, updated); - return updated; - } - - async deleteTag(id: string, userId: string): Promise { - const tag = this.tags.get(id); - if (!tag || tag.userId !== userId) return false; - // Remove all game_tags that reference this tag - for (const [gtId, gt] of this.gameTags) { - if (gt.tagId === id) { - this.gameTags.delete(gtId); - } - } - return this.tags.delete(id); - } - - async getGameTags(gameId: string): Promise { - return Array.from(this.gameTags.values()) - .filter((gt) => gt.gameId === gameId) - .map(({ id, gameId, tagId, addedAt }) => ({ id, gameId, tagId, addedAt })); - } - - async getGamesByTag(tagId: string, userId: string): Promise { - const tag = this.tags.get(tagId); - if (!tag || tag.userId !== userId) return []; - return Array.from(this.gameTags.values()) - .filter((gt) => gt.tagId === tagId) - .map((gt) => gt.gameId); - } - - async getTagsByIds(tagIds: string[]): Promise { - return Array.from(this.tags.values()) - .filter((tag) => tagIds.includes(tag.id)); - } - - async getGamesByIds(gameIds: string[]): Promise { - return Array.from(this.games.values()) - .filter((game) => gameIds.includes(game.id)); - } - - async addTagToGame(gameTag: InsertGameTag): Promise { - const id = randomUUID(); - const now = new Date(); - const newGameTag: GameTag = { - id, - gameId: gameTag.gameId, - tagId: gameTag.tagId, - addedAt: now, - }; - this.gameTags.set(id, newGameTag); - return newGameTag; - } - - async removeTagFromGame(gameId: string, tagId: string): Promise { - for (const [id, gt] of this.gameTags) { - if (gt.gameId === gameId && gt.tagId === tagId) { - return this.gameTags.delete(id); - } - } - return false; - } - async getGameJournalEntries(gameId: string, userId: string): Promise { return Array.from(this.gameJournalEntries.values()) .filter((entry) => entry.gameId === gameId && entry.userId === userId) @@ -3290,119 +3165,6 @@ export class DatabaseStorage implements IStorage { return result.length > 0; } - // Tag methods (DatabaseStorage implementation) - async getTags(userId: string): Promise { - return db - .select() - .from(tags) - .where(eq(tags.userId, userId)) - .orderBy(asc(tags.name)); - } - - async getTag(id: string, userId: string): Promise { - const result = await db - .select() - .from(tags) - .where(and(eq(tags.id, id), eq(tags.userId, userId))) - .limit(1); - return result[0]; - } - - async createTag(tag: InsertTag & { userId: string }): Promise { - const now = new Date(); - const rows = await db - .insert(tags) - .values({ - id: randomUUID(), - userId: tag.userId, - name: tag.name, - color: tag.color, - createdAt: now, - updatedAt: now, - }) - .returning(); - return firstOrThrow(rows); - } - - async updateTag(id: string, userId: string, patch: UpdateTag): Promise { - const result = await db - .update(tags) - .set({ ...patch, updatedAt: new Date() }) - .where(and(eq(tags.id, id), eq(tags.userId, userId))) - .returning(); - return result[0]; - } - - async deleteTag(id: string, userId: string): Promise { - // First, delete all game_tags that reference this tag - await db - .delete(gameTags) - .where(and(eq(gameTags.tagId, id), exists( - db.select().from(tags).where(and(eq(tags.id, id), eq(tags.userId, userId))) - ))); - - const result = await db - .delete(tags) - .where(and(eq(tags.id, id), eq(tags.userId, userId))) - .returning(); - return result.length > 0; - } - - async getGameTags(gameId: string): Promise { - return db - .select() - .from(gameTags) - .where(eq(gameTags.gameId, gameId)); - } - - async getGamesByTag(tagId: string, userId: string): Promise { - const result = await db - .select({ gameId: gameTags.gameId }) - .from(gameTags) - .where(and( - eq(gameTags.tagId, tagId), - exists( - db.select().from(tags).where(and(eq(tags.id, tagId), eq(tags.userId, userId))) - ) - )); - return result.map((row) => row.gameId); - } - - async getTagsByIds(tagIds: string[]): Promise { - return db - .select() - .from(tags) - .where(inArray(tags.id, tagIds)); - } - - async getGamesByIds(gameIds: string[]): Promise { - return db - .select() - .from(games) - .where(inArray(games.id, gameIds)); - } - - async addTagToGame(gameTag: InsertGameTag): Promise { - const rows = await db - .insert(gameTags) - .values({ - id: randomUUID(), - gameId: gameTag.gameId, - tagId: gameTag.tagId, - addedAt: new Date(), - }) - .returning(); - return firstOrThrow(rows); - } - - async removeTagFromGame(gameId: string, tagId: string): Promise { - const result = await db - .delete(gameTags) - .where(and(eq(gameTags.gameId, gameId), eq(gameTags.tagId, tagId))) - .returning(); - return result.length > 0; - } - async getGameJournalEntries(gameId: string, userId: string): Promise { return db .select() diff --git a/server/tag-routes.ts b/server/tag-routes.ts deleted file mode 100644 index 1ec5dfb2b..000000000 --- a/server/tag-routes.ts +++ /dev/null @@ -1,309 +0,0 @@ -import { Router, type Request, type Response } from "express"; -import { body, param } from "express-validator"; - -import { z } from "zod"; -import { storage } from "./storage.js"; -import { authenticateToken } from "./auth.js"; -import { routesLogger } from "./logger.js"; -import { validateRequest, sanitizeGameId } from "./middleware.js"; -import { - insertTagSchema, - updateTagSchema, - type User, -} from "../shared/schema.js"; - -const router = Router(); -const logger = routesLogger.child({ module: "tag-routes" }); - -// Validation middleware -const sanitizeTagIdParam = [ - param("tagId") - .trim() - .matches(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i) - .withMessage("Invalid tag ID format"), -]; - -const validateTagBody = [ - body("name") - .trim() - .isLength({ min: 1, max: 100 }) - .withMessage("Tag name must be between 1 and 100 characters"), - body("color") - .optional() - .trim() - .isLength({ max: 20 }) - .withMessage("Color must be 20 characters or less"), -]; - -// GET /api/tags - Get all tags for the current user -router.get("/api/tags", authenticateToken, async (req: Request, res: Response) => { - try { - const user = req.user as User; - const tags = await storage.getTags(user.id); - logger.info(`User ${user.id} fetched ${tags.length} tags`); - return res.json(tags); - } catch (error) { - logger.error({ error }, "Failed to get tags"); - return res.status(500).json({ error: "Failed to get tags" }); - } -}); - -// GET /api/tags/:tagId - Get a specific tag -router.get( - "/api/tags/:tagId", - authenticateToken, - ...sanitizeTagIdParam, - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { tagId } = req.params as { tagId: string }; - const tag = await storage.getTag(tagId, user.id); - - if (!tag) { - logger.warn(`User ${user.id} requested non-existent tag ${tagId}`); - return res.status(404).json({ error: "Tag not found" }); - } - - logger.info(`User ${user.id} fetched tag ${tagId}`); - return res.json(tag); - } catch (error) { - logger.error({ error }, "Failed to get tag"); - return res.status(500).json({ error: "Failed to get tag" }); - } - } -); - -// POST /api/tags - Create a new tag -router.post( - "/api/tags", - authenticateToken, - ...validateTagBody, - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { name, color } = req.body as { name: string; color?: string }; - - // Validate using Zod schema - const validated = insertTagSchema.parse({ name, color }); - - const tag = await storage.createTag({ userId: user.id, ...validated }); - logger.info(`User ${user.id} created tag ${tag.id}: ${tag.name}`); - return res.status(201).json(tag); - } catch (error) { - if (error instanceof z.ZodError) { - logger.warn({ error }, "Tag creation validation failed"); - return res.status(400).json({ error: error.issues[0]?.message ?? "Validation failed" }); - } - logger.error({ error }, "Failed to create tag"); - return res.status(500).json({ error: "Failed to create tag" }); - } - } -); - -// PATCH /api/tags/:tagId - Update a tag -router.patch( - "/api/tags/:tagId", - authenticateToken, - ...sanitizeTagIdParam, - ...validateTagBody, - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { tagId } = req.params as { tagId: string }; - const { name, color } = req.body as { name?: string; color?: string }; - - // Validate using Zod schema - const validated = updateTagSchema.parse({ name, color }); - - const tag = await storage.updateTag(tagId, user.id, validated); - - if (!tag) { - logger.warn(`User ${user.id} tried to update non-existent tag ${tagId}`); - return res.status(404).json({ error: "Tag not found" }); - } - - logger.info(`User ${user.id} updated tag ${tagId}`); - return res.json(tag); - } catch (error) { - if (error instanceof z.ZodError) { - logger.warn({ error }, "Tag update validation failed"); - return res.status(400).json({ error: error.issues[0]?.message ?? "Validation failed" }); - } - logger.error({ error }, "Failed to update tag"); - return res.status(500).json({ error: "Failed to update tag" }); - } - } -); - -// DELETE /api/tags/:tagId - Delete a tag -router.delete( - "/api/tags/:tagId", - authenticateToken, - ...sanitizeTagIdParam, - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { tagId } = req.params as { tagId: string }; - - const deleted = await storage.deleteTag(tagId, user.id); - - if (!deleted) { - logger.warn(`User ${user.id} tried to delete non-existent tag ${tagId}`); - return res.status(404).json({ error: "Tag not found" }); - } - - logger.info(`User ${user.id} deleted tag ${tagId}`); - return res.json({ success: true }); - } catch (error) { - logger.error({ error }, "Failed to delete tag"); - return res.status(500).json({ error: "Failed to delete tag" }); - } - } -); - -// GET /api/games/:gameId/tags - Get all tags for a specific game -router.get( - "/api/games/:gameId/tags", - authenticateToken, - ...sanitizeGameId, - validateRequest, - async (req: Request, res: Response) => { - try { - const { gameId } = req.params as { gameId: string }; - const gameTags = await storage.getGameTags(gameId); - - // Get full tag details for each tag ID - const tagIds = gameTags.map((gt) => gt.tagId); - const tags = tagIds.length > 0 - ? await storage.getTagsByIds(tagIds) - : []; - - const tagsMap = new Map(tags.map((tag) => [tag.id, tag])); - const result = gameTags.map((gt) => ({ - ...gt, - tag: tagsMap.get(gt.tagId), - })); - - logger.info(`Fetched ${result.length} tags for game ${gameId}`); - return res.json(result); - } catch (error) { - logger.error({ error }, "Failed to get game tags"); - return res.status(500).json({ error: "Failed to get game tags" }); - } - } -); - -// POST /api/games/:gameId/tags - Add a tag to a game -router.post( - "/api/games/:gameId/tags", - authenticateToken, - ...sanitizeGameId, - body("tagId") - .trim() - .matches(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i) - .withMessage("Invalid tag ID format"), - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { gameId } = req.params as { gameId: string }; - const { tagId } = req.body as { tagId: string }; - - // Verify the tag exists and belongs to the user - const tag = await storage.getTag(tagId, user.id); - if (!tag) { - logger.warn(`User ${user.id} tried to add non-existent tag ${tagId} to game ${gameId}`); - return res.status(404).json({ error: "Tag not found" }); - } - - // Check if the tag is already on the game - const existing = await storage.getGameTags(gameId); - if (existing.some((gt) => gt.tagId === tagId)) { - logger.warn(`User ${user.id} tried to add duplicate tag ${tagId} to game ${gameId}`); - return res.status(409).json({ error: "Tag already added to this game" }); - } - - const gameTag = await storage.addTagToGame({ gameId, tagId }); - logger.info(`User ${user.id} added tag ${tagId} to game ${gameId}`); - return res.status(201).json(gameTag); - } catch (error) { - logger.error({ error }, "Failed to add tag to game"); - return res.status(500).json({ error: "Failed to add tag to game" }); - } - } -); - -// DELETE /api/games/:gameId/tags/:tagId - Remove a tag from a game -router.delete( - "/api/games/:gameId/tags/:tagId", - authenticateToken, - ...sanitizeGameId, - ...sanitizeTagIdParam, - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { gameId, tagId } = req.params as { gameId: string; tagId: string }; - - // Verify the tag belongs to the user - const tag = await storage.getTag(tagId, user.id); - if (!tag) { - logger.warn(`User ${user.id} tried to remove non-existent tag ${tagId} from game ${gameId}`); - return res.status(404).json({ error: "Tag not found" }); - } - - const removed = await storage.removeTagFromGame(gameId, tagId); - - if (!removed) { - logger.warn(`User ${user.id} tried to remove non-existent tag ${tagId} from game ${gameId}`); - return res.status(404).json({ error: "Tag not found on this game" }); - } - - logger.info(`User ${user.id} removed tag ${tagId} from game ${gameId}`); - return res.json({ success: true }); - } catch (error) { - logger.error({ error }, "Failed to remove tag from game"); - return res.status(500).json({ error: "Failed to remove tag from game" }); - } - } -); - -// GET /api/tags/:tagId/games - Get all games with a specific tag -router.get( - "/api/tags/:tagId/games", - authenticateToken, - ...sanitizeTagIdParam, - validateRequest, - async (req: Request, res: Response) => { - try { - const user = req.user as User; - const { tagId } = req.params as { tagId: string }; - - // Verify the tag exists and belongs to the user - const tag = await storage.getTag(tagId, user.id); - if (!tag) { - logger.warn(`User ${user.id} requested games for non-existent tag ${tagId}`); - return res.status(404).json({ error: "Tag not found" }); - } - - const gameIds = await storage.getGamesByTag(tagId, user.id); - - // Get full game details - const games = gameIds.length > 0 - ? await storage.getGamesByIds(gameIds) - : []; - - logger.info(`User ${user.id} fetched ${games.length} games for tag ${tagId}`); - return res.json(games); - } catch (error) { - logger.error({ error }, "Failed to get games by tag"); - return res.status(500).json({ error: "Failed to get games by tag" }); - } - } -); - -export default router; diff --git a/shared/__tests__/schema-parity.test.ts b/shared/__tests__/schema-parity.test.ts index b3179b580..9f6e2d44c 100644 --- a/shared/__tests__/schema-parity.test.ts +++ b/shared/__tests__/schema-parity.test.ts @@ -34,7 +34,6 @@ const EXPECTED_TABLES = [ "gameMilestones", "gamePlaySessions", "gameScreenshots", - "gameTags", "games", "importTaskItems", "importTasks", @@ -50,7 +49,6 @@ const EXPECTED_TABLES = [ "rssFeedItems", "rssFeeds", "systemConfig", - "tags", "userSettings", "users", "xrelNotifiedReleases", diff --git a/shared/schema.pg.ts b/shared/schema.pg.ts index 7e632b754..9d1b71b12 100644 --- a/shared/schema.pg.ts +++ b/shared/schema.pg.ts @@ -397,36 +397,6 @@ export const collectionGames = pgTable( (t) => [uniqueIndex("collection_games_collection_game_idx").on(t.collectionId, t.gameId)] ); -export const tags = pgTable( - "tags", - { - id: text("id").primaryKey(), - userId: text("user_id") - .notNull() - .references(() => users.id, { onDelete: "cascade" }), - name: text("name").notNull(), - color: text("color"), - createdAt: timestampMs("created_at").default(sql`(EXTRACT(EPOCH FROM now()) * 1000)::bigint`), - updatedAt: timestampMs("updated_at").default(sql`(EXTRACT(EPOCH FROM now()) * 1000)::bigint`), - }, - (t) => [index("tags_user_idx").on(t.userId)] -); - -export const gameTags = pgTable( - "game_tags", - { - id: text("id").primaryKey(), - gameId: text("game_id") - .notNull() - .references(() => games.id, { onDelete: "cascade" }), - tagId: text("tag_id") - .notNull() - .references(() => tags.id, { onDelete: "cascade" }), - addedAt: timestampMs("added_at").default(sql`(EXTRACT(EPOCH FROM now()) * 1000)::bigint`), - }, - (t) => [uniqueIndex("game_tags_game_tag_idx").on(t.gameId, t.tagId)] -); - export const gameJournalEntries = pgTable( "game_journal_entries", { diff --git a/shared/schema.ts b/shared/schema.ts index 0b09216dc..839f2991c 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -594,34 +594,6 @@ export const collectionGames = sqliteTable( (t) => [uniqueIndex("collection_games_collection_game_idx").on(t.collectionId, t.gameId)] ); -export const tags = sqliteTable("tags", { - id: text("id").primaryKey(), - userId: text("user_id") - .notNull() - .references(() => users.id, { onDelete: "cascade" }), - name: text("name").notNull(), - color: text("color"), - createdAt: integer("created_at", { mode: "timestamp_ms" }).default( - sql`(strftime('%s', 'now') * 1000)` - ), - updatedAt: integer("updated_at", { mode: "timestamp_ms" }).default( - sql`(strftime('%s', 'now') * 1000)` - ), -}, (t) => [index("tags_user_idx").on(t.userId)]); - -export const gameTags = sqliteTable("game_tags", { - id: text("id").primaryKey(), - gameId: text("game_id") - .notNull() - .references(() => games.id, { onDelete: "cascade" }), - tagId: text("tag_id") - .notNull() - .references(() => tags.id, { onDelete: "cascade" }), - addedAt: integer("added_at", { mode: "timestamp_ms" }).default( - sql`(strftime('%s', 'now') * 1000)` - ), -}, (t) => [uniqueIndex("game_tags_game_tag_idx").on(t.gameId, t.tagId)]); - export const notifications = sqliteTable("notifications", { id: text("id").primaryKey(), userId: text("user_id").references(() => users.id, { onDelete: "cascade" }), @@ -847,26 +819,6 @@ export const addCollectionGameSchema = z.object({ gameId: z.string().trim().min(1), }); -export const insertTagSchema = createInsertSchema(tags, { - name: (schema) => schema.trim().min(1, "Tag name cannot be empty").max(100), - color: (schema) => schema.trim().max(20), -}).omit({ - id: true, - userId: true, - createdAt: true, - updatedAt: true, -}); - -export const updateTagSchema = insertTagSchema.partial(); - -export const insertGameTagSchema = createInsertSchema(gameTags, { - gameId: (schema) => schema.trim().min(1), - tagId: (schema) => schema.trim().min(1), -}).omit({ - id: true, - addedAt: true, -}); - export const insertGameJournalEntrySchema = createInsertSchema(gameJournalEntries, { note: (schema) => schema.trim().min(1, "Note cannot be empty").max(10000), }).omit({ @@ -1211,13 +1163,6 @@ export type InsertCollection = { rules: CollectionRules | null; }; export type CollectionGame = typeof collectionGames.$inferSelect; - -export type Tag = typeof tags.$inferSelect; -export type InsertTag = z.infer; -export type UpdateTag = z.infer; - -export type GameTag = typeof gameTags.$inferSelect; -export type InsertGameTag = z.infer; export type GamePlaySession = typeof gamePlaySessions.$inferSelect; export type InsertGamePlaySession = typeof gamePlaySessions.$inferInsert; export type GameJournalEntry = typeof gameJournalEntries.$inferSelect; From 46d147c1b66831068bc49b73f78d5234c17253bf Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 13:12:08 +0000 Subject: [PATCH 12/33] Add the latest dependency updates to the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index bbb2b05c2..8e7aaab77 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -36,7 +36,7 @@ Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.d ### Dependencies -- Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321. +- Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321, #1328, #1329, #1330. ## [1.6.0] - 2026-10-31 From bfff8d82c99aef68f2f012ef248a810009871942 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 12 Nov 2026 08:09:27 +0000 Subject: [PATCH 13/33] Add the node-forge and fast-xml-parser advisories and card labels to the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 989abdf8a..ce45bf8e7 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -28,11 +28,23 @@ All notable changes to this project will be documented in this file. - **Large archive imports**: archive listings are streamed, so valid archives with a long file list no longer fail on a size limit (#1300, thanks @JEFF7712). - **Path checks**: the sensitive-path guard also rejects Windows system paths, the `ADMIN$` share and the macOS `/private/etc` alias, and SeerrNG assets are validated against your real library roots (#1304). - **Linked finished downloads**: linking an already finished download (**Downloads → Scan unlinked**, or a single claim) now starts the import when post-processing is on, instead of leaving it completed with nothing in the library folder (#1324). +- **Screen reader labels on game cards**: the rating and release date controls on game cards now name the game they belong to, for example "My rating for Hades: 6.5/10" (#1331). - **Apprise destinations**: the Apprise API URL and each notification URL are checked before they are saved and again before each send. Local network addresses still work; cloud metadata and other blocked addresses are refused with an "Invalid or unsafe" error, and an unsafe notification URL already saved is skipped with a warning (#1314). ### Vulnerabilities Addressed -Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`): none of the 56 bumped packages matched a patched advisory, so no dependency CVE or CWE is fixed in this release so far. First-party fixes: +Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`). The other 119 bumped packages matched no patched advisory. + +#### Production dependencies + +- **node-forge** 1.4.1 → 1.4.3 — fixes 4 advisories: + - **CVE-2026-125333** (MODERATE, CWE-1333) — ReDoS in `forge.http` response header and cookie trimming + - **CVE-2026-125334** (MODERATE, CWE-476) — TLS client crash on a handshake record received without a session + - **CVE-2026-125332** (MODERATE, CWE-20 and CWE-248) — TLS client crash on an unsupported ServerHello compression method + - **CVE-2026-125335** (LOW, CWE-347) — Ed25519 signature verification accepts small-order public keys +- **fast-xml-parser** 5.11.2 → 5.12.0 — fixes **CVE-2026-126066** (LOW, CWE-407): quadratic CPU consumption scanning unterminated stop-node tags + +#### First-party fixes - **Apprise destinations (CWE-918, server-side request forgery; no CVE assigned)**: the Apprise API URL and the notification URLs are validated before they are saved and before each send, so a crafted URL can no longer make Questarr call cloud metadata or other blocked addresses (#1314). From 4e6436927fcba20916adbb39cd754d9501436b6a Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 17:10:10 +0000 Subject: [PATCH 14/33] Document the Needs Review search ranking and play-time page refresh in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 4 +++- docs/LIBRARY_IMPORT.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ce45bf8e7..9c50df58c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -27,6 +27,8 @@ All notable changes to this project will be documented in this file. - **xREL checks**: a malformed xREL response is treated as unavailable, never as an empty result (#1305). A release missing from a full, truncated xREL list is reported as unknown instead of not found (#1309). xREL results are kept across long auto-search intervals and large wanted lists (#1307). The trust badge says that p2p releases cannot be checked for nukes (#1306). - **Large archive imports**: archive listings are streamed, so valid archives with a long file list no longer fail on a size limit (#1300, thanks @JEFF7712). - **Path checks**: the sensitive-path guard also rejects Windows system paths, the `ADMIN$` share and the macOS `/private/etc` alias, and SeerrNG assets are validated against your real library roots (#1304). +- **Needs Review manual search**: the results of **Not listed? Search IGDB by name** are ordered by how well the title matches what you typed. A bracketed year or an id tag is ignored when scoring, and a trailing word such as "-Men" is no longer taken for a release group (#1335). +- **Play time refresh**: open pages update after a scheduled Steam sync or a Playnite push, without a reload. The Statistics, the Steam sync status and the game's sessions refresh, including after the browser reconnects (#1336). - **Linked finished downloads**: linking an already finished download (**Downloads → Scan unlinked**, or a single claim) now starts the import when post-processing is on, instead of leaving it completed with nothing in the library folder (#1324). - **Screen reader labels on game cards**: the rating and release date controls on game cards now name the game they belong to, for example "My rating for Hades: 6.5/10" (#1331). - **Apprise destinations**: the Apprise API URL and each notification URL are checked before they are saved and again before each send. Local network addresses still work; cloud metadata and other blocked addresses are refused with an "Invalid or unsafe" error, and an unsafe notification URL already saved is skipped with a warning (#1314). @@ -50,7 +52,7 @@ Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.d ### Dependencies -- Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321, #1328, #1329, #1330, #1332, #1333, #1334. +- Dependency updates: #1297, #1298, #1299, #1313, #1319, #1321, #1328, #1329, #1330, #1327, #1332, #1333, #1334. ## [1.6.0] - 2026-10-31 diff --git a/docs/LIBRARY_IMPORT.md b/docs/LIBRARY_IMPORT.md index d92cf3fd0..630e1ea06 100644 --- a/docs/LIBRARY_IMPORT.md +++ b/docs/LIBRARY_IMPORT.md @@ -197,7 +197,8 @@ configuration does not delete the directory itself. crowded with sequels and mods. **Needs Review** lists up to ten, likeliest first, each with its cover and release year. - Under **Needs Review**, choose a suggested IGDB game or enter a different - name in **Not listed? Search IGDB by name**. Search alone does not import the + name in **Not listed? Search IGDB by name**. Search results are ordered by how well the + title matches what you typed. Search alone does not import the game; clicking a candidate confirms it and adds it to your library. - **Ignore** removes a folder from Needs Review for good, for example a Proton build next to your games. Later scans skip it before listing its files, unless it is From 7eb441691d21977adad60befcaf4b2d8a22d618b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 11:34:22 +0000 Subject: [PATCH 15/33] Format API reference with Prettier Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/API.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/API.md b/docs/API.md index 15f7f255f..01407dfa7 100644 --- a/docs/API.md +++ b/docs/API.md @@ -634,9 +634,7 @@ Across handlers, error responses follow one of these consistent shapes: ```json { "error": "Validation failed", - "details": [ - /* express-validator error objects: { type, msg, path, location, value } */ - ] + "details": [/* express-validator error objects: { type, msg, path, location, value } */] } ``` - **Validation failures (Zod schemas)**: handlers that call @@ -645,9 +643,7 @@ Across handlers, error responses follow one of these consistent shapes: ```json { "error": "Invalid data", - "details": [ - /* ZodError.errors array */ - ] + "details": [/* ZodError.errors array */] } ``` (message text varies per handler, e.g. "Invalid game data", "Invalid From fc0b1734054074c9de08ae098a1f811fa6508727 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 08:12:42 +0000 Subject: [PATCH 16/33] Document support diagnostics, import retry fix and automatic upgrades policy Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8fa8c374e..5b6db3e78 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Added +- **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). - **Automatic upgrades of owned games**: the **Updates for Owned Games** setting (and the per-game **Updates** field) has a new **Download automatically** choice. With it, the scheduled search downloads a release whose name proves a newer version than the installed one: a full release with a higher version, or an update patch that says it starts from the installed version. Anything it cannot prove (no readable version, a different numbering scheme, a patch from another base, an unknown installed version) is left alone and flagged as before. The game stays owned while the new version downloads, each automatic upgrade is listed in **Activity → History** as **Upgrade** with the reason, and an "Upgrade Started" notification is sent. Opt-in: the default stays **Notify me**. It needs a scoring profile (Questarr-mgmt#97). - **Replace owned releases with better-scored ones**: for owned games set to **Download automatically**, **Settings → Discovery & Downloads → Download Rules → Replace owned releases with better-scored ones** also swaps the release you downloaded for a better-scored release of the same version, until the installed release reaches the **Stop at score** cutoff. A release must score at least **Minimum score gain** points more (10 by default) to be taken. The installed release is the last full release Questarr downloaded for the game, scored in the same search as the others: when it is no longer listed by your indexers, or carries another version than the installed one, nothing is swapped. Off by default (Questarr-mgmt#97). - **Auto-download the best-scored release**: with **Settings → Discovery & Downloads → Download Rules → Auto-download the best-scored release** switched on, auto-download no longer stops when several releases remain for a wanted game: it takes the one your scoring profile ranks first, skipping a release that already failed for that game. Off by default, so the "Multiple Results Found" notification is unchanged until you opt in; it needs an active scoring profile and auto-download. @@ -27,7 +28,7 @@ All notable changes to this project will be documented in this file. - **Search fallback**: when the full game title finds nothing, the search retries with simpler titles (without a possessive publisher prefix, edition words, punctuation or subtitle) and tells you which one it used. Sequels are still refused. Releases whose protocol none of your download clients supports (Usenet with only torrent clients, or the opposite) are flagged and cannot be downloaded (#1312). - **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59, #1311). - **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once per line (`SEARCH_MAX_CONCURRENT_PER_INDEXER`); interactive searches and auto-search have separate lines, so an indexer can receive up to 2 of each at the same time. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request, and each indexer can carry its own **Request timeout** (1 to 300 seconds) in its settings. An indexer that answers 429 is left alone for its `Retry-After`, or for a growing delay (30 s, 1 min, 2 min... up to 15 min) when it gives none, and its search errors say so instead of querying it again. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, #1337, Questarr-mgmt#61). -- **Update policy for owned games**: **Settings → Discovery & Downloads** gets an **Updates for Owned Games** default (**Notify me** or **Off**) and each game's details an **Updates** field that can follow it or override it. With **Off**, auto-search no longer looks for newer versions or repacks of that game and clears the update badge it showed (Questarr-mgmt#53, #1339). +- **Update policy for owned games**: **Settings → Discovery & Downloads** gets an **Updates for Owned Games** default (**Notify me**, **Off** or **Download automatically**) and each game's details an **Updates** field that can follow it or override it. With **Off**, auto-search no longer looks for newer versions or repacks of that game and clears the update badge it showed (Questarr-mgmt#53, #1339). - **Needs Review log**: a folder that stays in Needs Review is explained in the server log (query sent to IGDB, candidates returned, best score against the 0.85 threshold) (#1340). - **Backup and restore**: the new **Backups** page (under Activity) saves the database, `config.yaml` and optionally the journal screenshots to a checksummed `.zip` in `data/backups`, on SQLite and on Postgres. A scheduled backup runs every 7 days (kept 28 days; both settable), a manual one on demand; backups can be downloaded and restored from a saved backup or an uploaded file. A restore checks the archive, refuses a backup from a newer Questarr or the other database engine, saves a "Before restore" copy and applies at the next start. See [Backups](BACKUPS.md) (Questarr-mgmt#5). - **Play time**: start and stop a timer on a playing game or add a session by hand; sessions appear in the game's Playtime section and journal, and the Statistics page shows hours per week and month, most played games, genres, platforms and streaks. Days follow your time zone with daylight saving time applied per session (#1318, #1320, Questarr-mgmt#71, Questarr-mgmt#84). See [Play time](PLAY_TIME.md). @@ -38,6 +39,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Manual import retries**: confirming a manual import again no longer transfers the files twice or sends a finished download back to manual review, and a second confirmation while the first is still running is refused with a clear message (#1275, #1359). - **Switch 2, Nintendo 64 and remake releases**: Switch 2 is now a platform of its own, `Nintendo 64`/`N64` markers are read as a platform, and a remake is kept distinct from the original game, so these releases are no longer scored as title spinoffs of another game (#1345, #1356). - **xREL checks**: a malformed xREL response is treated as unavailable, never as an empty result (#1305). A release missing from a full, truncated xREL list is reported as unknown instead of not found (#1309). xREL results are kept across long auto-search intervals and large wanted lists (#1307). The trust badge says that p2p releases cannot be checked for nukes (#1306). - **Large archive imports**: archive listings are streamed, so valid archives with a long file list no longer fail on a size limit (#1300, thanks @JEFF7712). From c91058d62448609cde53365bd236b78ec7cfa1b8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 02:57:20 +0000 Subject: [PATCH 17/33] Document the reorganized Settings tabs and update Settings paths in the docs Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/API.md | 2 +- docs/ARCHITECTURE.md | 2 +- docs/CHANGELOG.md | 24 ++++++++++++++---------- docs/INDEXERS.md | 2 +- docs/RELEASE_CLASSIFICATION.md | 4 ++-- docs/SECRETS.md | 22 +++++++++++----------- docs/SECURITY_ASSESSMENT.md | 2 +- docs/SEERRNG.md | 2 +- docs/STEAM_LIBRARY.md | 2 +- 9 files changed, 33 insertions(+), 29 deletions(-) diff --git a/docs/API.md b/docs/API.md index 01407dfa7..86b670b59 100644 --- a/docs/API.md +++ b/docs/API.md @@ -449,7 +449,7 @@ Mounted under `/api/activity` and `/api/system` (JWT). Activity only sees the re ## Release Scoring -Authenticated endpoints behind the **Settings → Discovery & Downloads → Release Scoring** card. Each user has one release profile and any number of custom formats; both are created with defaults (and the old preferred release groups converted) the first time they are read. +Authenticated endpoints behind the **Settings → Release Scoring** card. Each user has one release profile and any number of custom formats; both are created with defaults (and the old preferred release groups converted) the first time they are read. | Method | Path | Request body | Response | | ------ | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index c1ddc05f4..4390f1c1a 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -136,7 +136,7 @@ flowchart TB ### Direct Steam owned-library import -The browser's Settings → Integrations view preselects untracked owned Steam games, +The browser's Settings → Connections view preselects untracked owned Steam games, with search and 50-row preview pages. `steam-library-routes.ts` provides preview, synchronous compatibility import, bulk-job start, progress and retry endpoints behind the authentication/CSRF boundary. `steam-library-jobs.ts` persists one diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 374cd6b8d..897225062 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,8 +11,8 @@ All notable changes to this project will be documented in this file. - **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). - **Replace the previous version after an upgrade**: **Settings → Import** has a new **Previous version after an upgrade** choice. With **Move it to .questarr-replaced** or **Delete it**, a new full release of a game that already has files in your library takes their place: the old version is kept until the new one is imported, then archived under `.questarr-replaced` in the library root or deleted, and it is put back if the import fails. When both versions use the same folder the import no longer waits for a manual review. The replacement is recorded in **Activity → History** and notified. Off by default (**Keep it**), which leaves imports exactly as before; DLC, updates and extras never replace anything. - **Automatic upgrades of owned games**: the **Updates for Owned Games** setting (and the per-game **Updates** field) has a new **Download automatically** choice. With it, the scheduled search downloads a release whose name proves a newer version than the installed one: a full release with a higher version, or an update patch that says it starts from the installed version. Anything it cannot prove (no readable version, a different numbering scheme, a patch from another base, an unknown installed version) is left alone and flagged as before. The game stays owned while the new version downloads, each automatic upgrade is listed in **Activity → History** as **Upgrade** with the reason, and an "Upgrade Started" notification is sent. Opt-in: the default stays **Notify me**. It needs a scoring profile (Questarr-mgmt#97). -- **Replace owned releases with better-scored ones**: for owned games set to **Download automatically**, **Settings → Discovery & Downloads → Download Rules → Replace owned releases with better-scored ones** also swaps the release you downloaded for a better-scored release of the same version, until the installed release reaches the **Stop at score** cutoff. A release must score at least **Minimum score gain** points more (10 by default) to be taken. The installed release is the last full release Questarr downloaded for the game, scored in the same search as the others: when it is no longer listed by your indexers, or carries another version than the installed one, nothing is swapped. Off by default (Questarr-mgmt#97). -- **Auto-download the best-scored release**: with **Settings → Discovery & Downloads → Download Rules → Auto-download the best-scored release** switched on, auto-download no longer stops when several releases remain for a wanted game: it takes the one your scoring profile ranks first, skipping a release that already failed for that game. Off by default, so the "Multiple Results Found" notification is unchanged until you opt in; it needs an active scoring profile and auto-download. +- **Replace owned releases with better-scored ones**: for owned games set to **Download automatically**, **Settings → Search & Downloads → Download Rules → Replace owned releases with better-scored ones** also swaps the release you downloaded for a better-scored release of the same version, until the installed release reaches the **Stop at score** cutoff. A release must score at least **Minimum score gain** points more (10 by default) to be taken. The installed release is the last full release Questarr downloaded for the game, scored in the same search as the others: when it is no longer listed by your indexers, or carries another version than the installed one, nothing is swapped. Off by default (Questarr-mgmt#97). +- **Auto-download the best-scored release**: with **Settings → Search & Downloads → Download Rules → Auto-download the best-scored release** switched on, auto-download no longer stops when several releases remain for a wanted game: it takes the one your scoring profile ranks first, skipping a release that already failed for that game. Off by default, so the "Multiple Results Found" notification is unchanged until you opt in; it needs an active scoring profile and auto-download. - **Finish-by goal**: pick a target day for a game in its **Playtime** section and Questarr compares it with the IGDB Time to Beat and your pace of the last 14 days (**On track**, **Behind**, **Overdue** or **Done**, with the time left and the time needed per day). The **Statistics** page lists every unfinished game with a goal, soonest first. See [Play time](PLAY_TIME.md#finish-by-goals) (#1351). - **Installed version detection**: a scan and an import now read the installed version of a game from `version.txt`, a GOG `goggame-*.info`, a Steam `appmanifest_*.acf` or an `.nfo` file, and the game page shows where the version comes from. A version you typed yourself is kept until a strictly newer download replaces it (#1342). - **Admin API keys on more integration routes**: an `admin`-scope API key can now call the integration ping and library read routes (#1357). @@ -21,7 +21,7 @@ All notable changes to this project will be documented in this file. - **Game tags**: put your own labels on games. Manage them in **Settings → Appearance → Tags**, add or remove them from a game's page (typing a new name creates the tag) and filter the library by tag from the **Filters** panel. Tags are private to your account (Questarr-mgmt#75, #1323). The Backlog roulette can also draw from a single tag. - **Play status sync**: the new `POST /api/integration/play-status` route lets Playnite push the completion status of games from any library it reads (Steam, GOG, Epic). Statuses are mapped to Questarr's, a playing, shelved or completed status you set yourself is never overwritten (a status written by an earlier sync can be replaced), wanted games are only promoted on request, and the platform is recorded on the game. The Playnite extension (1.2.0) sends it with **Sync play status to Questarr**, or after each library update when switched on (off by default; Questarr-mgmt#86). - **GOG library and play time**: the Playnite extension (1.3.0) can add the games of your GOG library to Questarr as owned (**Import GOG library into Questarr**; a title IGDB cannot match to the same game is skipped, never added wrongly) and send the play time Playnite already holds for them (**Import GOG play time into Questarr**). The play time becomes one estimated session per game, minus what Questarr already recorded, so running it again adds nothing. New routes `POST /api/integration/library/import` and `POST /api/integration/play-time-totals` (Questarr-mgmt#87). -- **Owned Steam library import**: from **Settings → Integrations**, preview your public Steam library and import the games you select (all untracked games are selected by default, thousands at a time) as **Owned**. The import runs on the server with saved progress, survives restarts and can be retried for the games that failed. Existing games keep their status, ratings and files. See [Steam library import](STEAM_LIBRARY.md) (#1273). +- **Owned Steam library import**: from **Settings → Connections**, preview your public Steam library and import the games you select (all untracked games are selected by default, thousands at a time) as **Owned**. The import runs on the server with saved progress, survives restarts and can be retried for the games that failed. Existing games keep their status, ratings and files. See [Steam library import](STEAM_LIBRARY.md) (#1273). - **Personal screenshots**: upload your own JPEG, PNG or WebP images (up to 8 MB) to a saved game from **Media → Your screenshots**, next to the trailers and IGDB artwork. Existing journal images appear there too. See [Personal screenshots](PERSONAL_SCREENSHOTS.md) (#1296, requested in #1287). - **Game modes**: IGDB game modes (single player, multiplayer, co-op...) are stored, shown on the game details and available as a **Game mode** rule for smart collections (#1295). - **Import into library**: a game found in an external root folder can be copied, moved or hardlinked into your library root with the configured naming pattern from **Library → Library Import**. Questarr then points the game at its new files (#1310, Questarr-mgmt#49). See [Library import](LIBRARY_IMPORT.md#discover-games-already-on-disk). @@ -29,7 +29,7 @@ All notable changes to this project will be documented in this file. - **Search fallback**: when the full game title finds nothing, the search retries with simpler titles (without a possessive publisher prefix, edition words, punctuation or subtitle) and tells you which one it used. Sequels are still refused. Releases whose protocol none of your download clients supports (Usenet with only torrent clients, or the opposite) are flagged and cannot be downloaded (#1312). - **Persistent classification cache**: release verdicts are now kept in the database as well as in memory (7 days, 20,000 rows, pruned hourly), for every classification mode and for the historical Jev check, so a restart or a Docker update no longer repeats paid cloud calls. A new model, provider endpoint or model, mode, confidence bar or pipeline version never reuses an older verdict, a failing layer's answer is never stored, and **Settings → Release classification → Clear classification cache** empties it (Questarr-mgmt#59, #1311). - **Indexer protection**: searches no longer hammer indexers shared with Sonarr, Radarr or Prowlarr. A search the browser abandoned stops its indexer requests, identical simultaneous searches share one request, and each indexer serves 2 searches at once per line (`SEARCH_MAX_CONCURRENT_PER_INDEXER`); interactive searches and auto-search have separate lines, so an indexer can receive up to 2 of each at the same time. `SEARCH_INDEXER_TIMEOUT_MS` sets the timeout of one indexer request, and each indexer can carry its own **Request timeout** (1 to 300 seconds) in its settings. An indexer that answers 429 is left alone for its `Retry-After`, or for a growing delay (30 s, 1 min, 2 min... up to 15 min) when it gives none, and its search errors say so instead of querying it again. See [Indexers](INDEXERS.md#protect-shared-indexers) (#1315, #1337, Questarr-mgmt#61). -- **Update policy for owned games**: **Settings → Discovery & Downloads** gets an **Updates for Owned Games** default (**Notify me**, **Off** or **Download automatically**) and each game's details an **Updates** field that can follow it or override it. With **Off**, auto-search no longer looks for newer versions or repacks of that game and clears the update badge it showed (Questarr-mgmt#53, #1339). +- **Update policy for owned games**: **Settings → Search & Downloads** gets an **Updates for Owned Games** default (**Notify me**, **Off** or **Download automatically**) and each game's details an **Updates** field that can follow it or override it. With **Off**, auto-search no longer looks for newer versions or repacks of that game and clears the update badge it showed (Questarr-mgmt#53, #1339). - **Needs Review log**: a folder that stays in Needs Review is explained in the server log (query sent to IGDB, candidates returned, best score against the 0.85 threshold) (#1340). - **Backup and restore**: the new **Backups** page (under Activity) saves the database, `config.yaml` and optionally the journal screenshots to a checksummed `.zip` in `data/backups`, on SQLite and on Postgres. A scheduled backup runs every 7 days (kept 28 days; both settable), a manual one on demand; backups can be downloaded and restored from a saved backup or an uploaded file. A restore checks the archive, refuses a backup from a newer Questarr or the other database engine, saves a "Before restore" copy and applies at the next start. See [Backups](BACKUPS.md) (Questarr-mgmt#5). - **Play time**: start and stop a timer on a playing game or add a session by hand; sessions appear in the game's Playtime section and journal, and the Statistics page shows hours per week and month, most played games, genres, platforms and streaks. Days follow your time zone with daylight saving time applied per session (#1318, #1320, Questarr-mgmt#71, Questarr-mgmt#84). See [Play time](PLAY_TIME.md). @@ -38,6 +38,10 @@ All notable changes to this project will be documented in this file. - **Steam Web API key in Settings**: the key for the library import, the play-time sync and the achievements can now be saved in **Settings → Steam** instead of only through `STEAM_API_KEY`. It is stored encrypted, never shown again, and overrides the environment variable until you remove it. - **Needs Review covers and folder tags**: each Needs Review candidate shows its IGDB cover and release year, and the scan asks IGDB for ten candidates per folder. A year in the folder name (`Celeste (2018)`) now only breaks ties, and `{igdb-1234}` or `{steam-620}` in a folder name selects the game exactly. See [Library import](LIBRARY_IMPORT.md) (#1317). +### Changed + +- **Settings reorganized**: the tabs are now **General**, **Search & Downloads**, **Release Scoring**, **Notifications**, **Connections**, **Import**, **Security** and **System**. Release scoring and the release classification cards moved to their own **Release Scoring** tab, and the IGDB card comes first under **Connections** (previously **Integrations**). Links to the classification review from older notifications still open the right card. Each Settings card now shows unsaved changes and saves on its own, muted text and primary buttons meet WCAG AA contrast, and the page width is capped (#1378, #1380, #1381, #1382). + ### Fixed - **Manual import retries**: confirming a manual import again no longer transfers the files twice or sends a finished download back to manual review, and a second confirmation while the first is still running is refused with a clear message (#1275, #1359). @@ -53,7 +57,7 @@ All notable changes to this project will be documented in this file. ### Vulnerabilities Addressed -Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`). The other 119 bumped packages matched no patched advisory. +Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`). The other 153 bumped packages matched no patched advisory. #### Production dependencies @@ -87,7 +91,7 @@ Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.d - The manual search shows the score, its breakdown and why a release was rejected - The auto-search only considers accepted releases, keeps the best-scored copy of a duplicate and orders the rest by score, then preferred protocol, then your sort order. - Releases the xREL PreDB lists as nuked are rejected, and the search shows an xREL badge. - - Configure it under **Settings → Discovery & Downloads → Release Scoring**, + - Configure it under **Settings → Release Scoring**, - Preferred Release Groups card: existing preferred groups become a "Preferred release group" format worth +50 (#1196). - In the manual download dialog, rejected releases are hidden by default with a badge showing how many: untick **Hide rejected releases** to see them, or set the default under **Auto-download rules** (#1231). - **Release trust badge**: each search result also shows one verdict, **Trusted**, **Unverified** or **Risky**, with the reasons behind it. The verdict comes from the rejection reasons and facts, not from the score, so changing a rule weight cannot turn a nuked release into a trusted one (#1250). Trust levels: @@ -95,7 +99,7 @@ Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.d - Trusted needs an accepted release with a clear title match and evidence that is hard to fake: listed on xREL with a size within 25 % of yours, or a preferred release group. - A name alone on xREL, or an xREL lookup that could not run, stays Unverified. - **Recommended custom formats**: an **Install recommended formats** button adds a starting set that pushes down crack-only, demo and pre-installed releases, rejects trainers, keygens and activators outright, and favors releases that include updates and DLC and a few trusted repackers. Formats you already have are not duplicated (#1224). -- **Scoped API keys**: API keys now have an access level (all, library write, read, game requests or admin) and an optional expiry of 1 to 365 days, chosen in **Settings → Integrations → API Keys**. The **admin** access lets deployment tooling configure Questarr (download clients, indexers, notifications, settings, import paths) from a script without an interactive login; treat such a key like an administrator login (#1289). +- **Scoped API keys**: API keys now have an access level (all, library write, read, game requests or admin) and an optional expiry of 1 to 365 days, chosen in **Settings → Connections → API Keys**. The **admin** access lets deployment tooling configure Questarr (download clients, indexers, notifications, settings, import paths) from a script without an interactive login; treat such a key like an administrator login (#1289). - **SeerrNG/Gameyfin Integration**: In API keys, the new **Game requests (SeerrNG)** access lets SeerrNG request PC games from Questarr through a provider API that follows the QuestarrNG contract. Integration routes are limited to 300 requests per minute per key (#1198). See [SeerrNG](SEERRNG.md), [Gameyfin](GAMEYFIN.md) and [API](API.md#api-keys-management). - **Release classification**: - Smart release filtering through machine learning, built in and free. Questarr recognizes patches, DLC, full games and non-game files (software, movies, soundtracks) right on your server, before anything is downloaded. No account, no API key, nothing leaves your network. @@ -103,8 +107,8 @@ Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.d - In detail, Questarr works out whether a release is the full game, a patch, DLC, an expansion, or something to avoid such as a crack only, demo or soundtrack. A release classified as a patch, DLC, crack only, demo or soundtrack is held for your review instead of being downloaded unattended. - It applies to automatic downloads and to the manual search results alike, so a release gets one type everywhere. - Questarr tries fast built-in rules first, then a small local model that ships with Questarr, including the Docker image, and runs offline (trained on 964 labeled releases, #1291), and only asks the optional TypeSafe cloud provider when those cannot decide. - - Pick the mode (`hybrid` by default, `local` to never leave your server, `cloud` for the previous cloud-only check), the confidence threshold and whether unclassified releases are held under **Settings → Discovery & Downloads → Release classification**, with no restart needed (#1258, #1263, #1265, #1266, #1267). -- **Review the classification**: Releases the classifier was unsure about can be kept for you to label under **Settings → Discovery & Downloads → Release classification review**, which flags a disagreement between the cloud and local models and notifies you each time 25 more releases wait for review (#1261, #1262, #1270). You can also share your verified labels with the maintainer to help improve the public model: tick **Share my verified labels automatically** (off by default), and only the release name, game title, label and model version are sent, never anything about your library, with **See what will be sent** showing the exact rows (#1271). See [Release classification](RELEASE_CLASSIFICATION.md) (#1264). + - Pick the mode (`hybrid` by default, `local` to never leave your server, `cloud` for the previous cloud-only check), the confidence threshold and whether unclassified releases are held under **Settings → Release Scoring → Release classification**, with no restart needed (#1258, #1263, #1265, #1266, #1267). +- **Review the classification**: Releases the classifier was unsure about can be kept for you to label under **Settings → Release Scoring → Release classification review**, which flags a disagreement between the cloud and local models and notifies you each time 25 more releases wait for review (#1261, #1262, #1270). You can also share your verified labels with the maintainer to help improve the public model: tick **Share my verified labels automatically** (off by default), and only the release name, game title, label and model version are sent, never anything about your library, with **See what will be sent** showing the exact rows (#1271). See [Release classification](RELEASE_CLASSIFICATION.md) (#1264). - **Update available badge and filter**: library games with newer update releases on your indexers show an **Update available** badge on their card and on the game page, and a new **Update Available** filter in the Library lists only those games. The plain search-results badge shows only when no update release is waiting (#1240). - **Backlog roulette game length**: choose a short adventure (up to 5 hours), a weekend quest (up to 15 hours) or a longer journey (up to 40 hours) from the IGDB completion estimate; games without a known estimate stay out of length-filtered draws. See [Backlog roulette](BACKLOG_ROULETTE.md) (#1272). - **Ignored folders in Library Import**: **Ignore** on a Needs Review folder removes it for good, so later scans skip it before listing its files, for example a Proton build next to your games. An **Ignored Folders** list under Needs Review restores a folder, which queues a rescan of its root folder, see [Library Import](LIBRARY_IMPORT.md) (#1239). @@ -190,7 +194,7 @@ Thanks to everyone who contributed to this release: - **Import review**: incomplete ClamAV scans stay in Pending Manual Imports instead of quarantine; ISO images remain intact during auto-unpack, and Sort Extras preserves internal game layouts while recognizing release-level extras (#1179). - **Pending imports**: orphaned downloads (missing game record) get a dedicated "Link Game" action to reattach them instead of stalling silently (#932). - **Download search**: results now link back to their indexer/source page (#872). -- **Global release name blacklist**: Settings → Discovery & Downloads lets you hide any release whose title contains a given term, case-insensitively, across manual search, both auto-search cycles, and AI enrichment/auto-download (#1112, closes #991). +- **Global release name blacklist**: Settings → Search & Downloads lets you hide any release whose title contains a given term, case-insensitively, across manual search, both auto-search cycles, and AI enrichment/auto-download (#1112, closes #991). #### Integrations diff --git a/docs/INDEXERS.md b/docs/INDEXERS.md index 2225277ff..e4d0d7b45 100644 --- a/docs/INDEXERS.md +++ b/docs/INDEXERS.md @@ -45,7 +45,7 @@ applies to search results as well as Discover games. ## Manage release blacklists -Open **Settings → Discovery & Downloads → Release Blacklist**. Add terms to +Open **Settings → Search & Downloads → Release Blacklist**. Add terms to hide matching release names across manual, automatic and AI-assisted searches; matching is case-insensitive. Choose **Save Blacklist** to save term edits. diff --git a/docs/RELEASE_CLASSIFICATION.md b/docs/RELEASE_CLASSIFICATION.md index b91bbd247..242d2f2d8 100644 --- a/docs/RELEASE_CLASSIFICATION.md +++ b/docs/RELEASE_CLASSIFICATION.md @@ -21,7 +21,7 @@ A release that no layer can classify is `unknown`. It is never turned into `full ## Settings page -Everything below can be changed in Settings > Discovery & Downloads > Release classification, +Everything below can be changed in Settings > Release Scoring > Release classification, without restarting: the classification type, the local model confidence, holding unclassifiable releases, and the active-learning options (collection, cloud suggestions, the low-confidence threshold and the candidate limit). The card also shows whether a local model is installed (and @@ -181,7 +181,7 @@ training example. ### Review -Settings > Discovery & Downloads > Release classification review lists pending candidates, most +Settings > Release Scoring > Release classification review lists pending candidates, most useful first: unresolved and disagreeing releases come before low-confidence ones, and a release whose likely class has few verified examples gets a bonus so the thin classes fill up. For each one you can verify a label (the local model's guess or the cloud suggestion is prefilled, not diff --git a/docs/SECRETS.md b/docs/SECRETS.md index e4a4c7cf9..ff42bf0e7 100644 --- a/docs/SECRETS.md +++ b/docs/SECRETS.md @@ -19,7 +19,7 @@ rather than starting with an invalid configuration. | Variable | Purpose | Required? | | --------------------------------------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `JWT_SECRET` | Signs/verifies session JWTs | No — auto-generated and persisted to the DB if unset (§2) | -| `NEXUSMODS_API_KEY` | NexusMods mod lookups | No — validated by `envSchema`; can be set later in Settings → Integrations (§3) | +| `NEXUSMODS_API_KEY` | NexusMods mod lookups | No — validated by `envSchema`; can be set later in Settings → Connections (§3) | | `STEAM_API_KEY` | Steam achievements in a game's Journal tab | No — can also be saved in Settings → Steam (§3); without a key the achievements section is simply hidden | | `IGDB_CLIENT_ID` / `IGDB_CLIENT_SECRET` | Twitch/IGDB OAuth for game metadata & discovery | No env-wise, but one of env/DB must be set for discovery to work | | `PORT` | HTTP port | No (default `5000`) | @@ -111,15 +111,15 @@ existing session. ## 3. Third-party API credentials -| Service | Where configured | Storage | Refresh/rotation | -| ----------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| **IGDB** (via Twitch OAuth) | `.env` (`IGDB_CLIENT_ID`/`IGDB_CLIENT_SECRET`) or Settings → Integrations | DB `system_config` keys `igdb.clientId` / `igdb.clientSecret` take priority over env if both are present (`server/igdb.ts:138-153`) | Twitch access token is fetched via `client_credentials` grant and cached in memory, auto-refreshed ~1 minute before expiry (`server/igdb.ts:187-214`). Client ID/secret themselves are user-rotated via the Settings UI. | -| **NexusMods** | `.env` (`NEXUSMODS_API_KEY`) or Settings → Integrations | DB `system_config` key `nexusmods.apiKey`; client reconfigured in-memory on save (`server/nexusmods.ts:46-69,176-182`) | Manual — overwrite the key in Settings. | -| **HowLongToBeat**, **PCGamingWiki**, **xREL.to** | N/A | N/A | These are unauthenticated public APIs; no credentials involved. | -| **Steam** wishlist import | N/A (public Steam endpoints + user's `steamId64`) | N/A | N/A | -| **Steam** Web API (library import, play time, achievements) | `.env` (`STEAM_API_KEY`) or Settings → Steam | DB `system_config` key `steam.apiKey`, encrypted with the credential key; it takes priority over the environment variable (`server/steam-api-key.ts`). `GET /api/settings/steam` returns only `{ apiKeyConfigured, source }`, never the key | Manual — save a new key in Settings, or remove the saved one to fall back to the environment variable. | -| **Outbound webhooks** signing secret | Generated by Questarr (or supplied when creating the webhook) | DB `webhook_subscriptions.secret`, encrypted with the credential key (`server/webhooks.ts`). Shown once at creation; the API never returns it again | Manual — `PATCH /api/webhooks/:id` with `{ "rotateSecret": true }`, then update the receiver. | -| **Discord** notification webhook | Stats page | DB `system_config` key `discord.webhookUrl`, plaintext (`server/routes.ts:2769-2801`) | Manual — overwrite the URL on the Stats page. | +| Service | Where configured | Storage | Refresh/rotation | +| ----------------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| **IGDB** (via Twitch OAuth) | `.env` (`IGDB_CLIENT_ID`/`IGDB_CLIENT_SECRET`) or Settings → Connections | DB `system_config` keys `igdb.clientId` / `igdb.clientSecret` take priority over env if both are present (`server/igdb.ts:138-153`) | Twitch access token is fetched via `client_credentials` grant and cached in memory, auto-refreshed ~1 minute before expiry (`server/igdb.ts:187-214`). Client ID/secret themselves are user-rotated via the Settings UI. | +| **NexusMods** | `.env` (`NEXUSMODS_API_KEY`) or Settings → Connections | DB `system_config` key `nexusmods.apiKey`; client reconfigured in-memory on save (`server/nexusmods.ts:46-69,176-182`) | Manual — overwrite the key in Settings. | +| **HowLongToBeat**, **PCGamingWiki**, **xREL.to** | N/A | N/A | These are unauthenticated public APIs; no credentials involved. | +| **Steam** wishlist import | N/A (public Steam endpoints + user's `steamId64`) | N/A | N/A | +| **Steam** Web API (library import, play time, achievements) | `.env` (`STEAM_API_KEY`) or Settings → Steam | DB `system_config` key `steam.apiKey`, encrypted with the credential key; it takes priority over the environment variable (`server/steam-api-key.ts`). `GET /api/settings/steam` returns only `{ apiKeyConfigured, source }`, never the key | Manual — save a new key in Settings, or remove the saved one to fall back to the environment variable. | +| **Outbound webhooks** signing secret | Generated by Questarr (or supplied when creating the webhook) | DB `webhook_subscriptions.secret`, encrypted with the credential key (`server/webhooks.ts`). Shown once at creation; the API never returns it again | Manual — `PATCH /api/webhooks/:id` with `{ "rotateSecret": true }`, then update the receiver. | +| **Discord** notification webhook | Stats page | DB `system_config` key `discord.webhookUrl`, plaintext (`server/routes.ts:2769-2801`) | Manual — overwrite the URL on the Stats page. | ### Apprise API login @@ -340,7 +340,7 @@ points operators at is on the safe side of the fix. indexer/downloader credentials stay decryptable across DB resets (`openssl rand -hex 32`). - [ ] Set IGDB and (optionally) NexusMods credentials via `.env` or - Settings → Integrations. + Settings → Connections. - [ ] Restrict who has login access to the app — Questarr has no per-user role scoping, so any account holder can use every configured indexer/downloader (though the API keys/passwords themselves are diff --git a/docs/SECURITY_ASSESSMENT.md b/docs/SECURITY_ASSESSMENT.md index 2c3108731..b2f6d1225 100644 --- a/docs/SECURITY_ASSESSMENT.md +++ b/docs/SECURITY_ASSESSMENT.md @@ -37,7 +37,7 @@ this lighter table format matches the pragmatic tone of the rest of `docs/`. | Risk area | Description | Likelihood | Impact | Mitigation / status | Reference | | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | Session revocation | JWTs are valid for 7 days (`server/auth.ts:79-82`) with no server-side revocation list or logout endpoint. A stolen token remains usable for up to a week. | Low–Medium | Medium | Accepted risk for the self-hosted, single-tenant use case; no fix planned. Operators concerned about this can shorten the effective window by rotating `JWT_SECRET`, which invalidates all sessions immediately. | `server/auth.ts:77-82` | -| Integration API key blast radius | The `/api/integration` surface (added for the Playnite extension and other machine clients) accepts a long-lived API key instead of a JWT. A key can be created without an expiry (and keys created before expiry existed never expire), so unlike the 7-day JWT above it is then revoked only by explicit user action. | Low | Low–Medium | Each key also carries one scope (`library:write`, `read`, `requests` or `all` for full access (also what keys created before scopes use)) enforced per route by `requireScope()`, an optional expiry (401 `API_KEY_EXPIRED`), and a 300/min per-key rate limit, so a leaked read-only or SeerrNG key reaches far less than the whole integration surface. The outer boundary is deliberately narrow: `requireAuthenticationForApi` accepts a key only under `/api/integration`, never on key management (`/api/api-keys`) or any other route, so a leaked key cannot mint/revoke keys or reach the rest of the app. Only a SHA-256 hash is persisted (`api_keys.key_hash`), the raw key is shown once at creation, and a user can revoke a key at any time from Settings → Integrations. `getApiKeyByHash` is a single indexed lookup, not a scan, so this doesn't reintroduce the timing/scan concerns a per-key bcrypt comparison would. | `server/auth.ts` (`authenticateApiKeyOrToken`, `generateApiKey`), `server/routes.ts` (`isIntegrationApiRequest`), `server/routes/api-keys.ts` | +| Integration API key blast radius | The `/api/integration` surface (added for the Playnite extension and other machine clients) accepts a long-lived API key instead of a JWT. A key can be created without an expiry (and keys created before expiry existed never expire), so unlike the 7-day JWT above it is then revoked only by explicit user action. | Low | Low–Medium | Each key also carries one scope (`library:write`, `read`, `requests` or `all` for full access (also what keys created before scopes use)) enforced per route by `requireScope()`, an optional expiry (401 `API_KEY_EXPIRED`), and a 300/min per-key rate limit, so a leaked read-only or SeerrNG key reaches far less than the whole integration surface. The outer boundary is deliberately narrow: `requireAuthenticationForApi` accepts a key only under `/api/integration`, never on key management (`/api/api-keys`) or any other route, so a leaked key cannot mint/revoke keys or reach the rest of the app. Only a SHA-256 hash is persisted (`api_keys.key_hash`), the raw key is shown once at creation, and a user can revoke a key at any time from Settings → Connections. `getApiKeyByHash` is a single indexed lookup, not a scan, so this doesn't reintroduce the timing/scan concerns a per-key bcrypt comparison would. | `server/auth.ts` (`authenticateApiKeyOrToken`, `generateApiKey`), `server/routes.ts` (`isIntegrationApiRequest`), `server/routes/api-keys.ts` | | CodeQL `js/insufficient-password-hash` on the integration API key hash | CodeQL's dataflow treats `extractApiKey`'s output (the `X-Api-Key`/Bearer value) as a "password" and flags `hashApiKey`'s plain `crypto.createHash("sha256")` as insufficient computational effort — the same class of advice that's correct for a human-chosen password, applied here to a 256-bit random token. | Low | Low | False positive — the query can't see that its input is `crypto.randomBytes(32)` output, not attacker-guessable. A slow KDF (bcrypt/scrypt/argon2/PBKDF2) defends against brute-forcing a _low-entropy_ secret; brute-forcing a 256-bit key is infeasible regardless of hash speed, so it buys nothing here. It would also actively regress the design: `getApiKeyByHash` is a single indexed equality lookup on every authenticated integration request, which requires a deterministic, unsalted digest — a salted slow hash can't be looked up by index at all (each row's salt differs), forcing a full-table scan-and-compare per request instead. Same disposition as the `js/request-forgery` row below: dismissed as a false positive, not fixed, per `docs/VULNERABILITY_MANAGEMENT.md` §2.2 item 3. | `server/auth.ts` (`hashApiKey`, `generateApiKey`) | | Integration API key sent over plaintext HTTP | `authenticateApiKeyOrToken` accepts a key over any connection the server itself accepts — there is no `req.secure`/trusted-proxy check requiring TLS specifically for API-key auth. On an HTTP deployment, a network observer on that segment could capture the key from the `X-Api-Key`/`Authorization` header and reuse it. | Low | Low–Medium | Consistent with the JWT row above and the CORS/CSP/HSTS row below, not a new gap: this project has never code-enforced TLS for any credential — that's an explicit, documented operator responsibility (`docs/REVERSE_PROXY.md`, `docs/SECRETS.md`), because plenty of legitimate self-hosted deployments run entirely on a trusted home LAN with no reverse proxy. Hard-blocking HTTP specifically for API keys (and not the JWT the browser UI already sends the same way) would be a new, inconsistent, surprising restriction rather than a real hardening step. The client (`extensions/playnite-questarr/Questarr.psm1`) is deliberately consent-based rather than a hard block: connecting over a plain `http://` address always shows an explicit warning that the key travels in cleartext on every sync or request, worded more strongly for an address outside the caller's own local network (`Test-QuestarrIsPrivateHost`) since that traffic can cross the open internet — but the operator's own server is theirs to configure, so the choice to proceed is theirs too. A same-host redirect (a reverse proxy enforcing `https://`, or normalizing a trailing slash) is followed with the key reattached by hand; a redirect to any other host, or a same-host redirect that downgrades `https://` to `http://`, is refused outright, closing the vector that could otherwise silently move the key to a different host or a weaker scheme than the one configured. | `server/auth.ts` (`authenticateApiKeyOrToken`), `extensions/playnite-questarr/Questarr.psm1` (`Invoke-QuestarrConnect`, `Invoke-QuestarrHttpRequest`) | | Concurrent duplicate game creation | `POST /api/games/match-and-add`, `POST /api/integration/games/request`, and other IGDB-match-and-insert call sites (shared via `quickAddGameByTitle` for the first two) check `getUserGames` for an existing `igdbId`/title match, then call `storage.addGame` — two concurrent requests for the same title from the same user can both pass the check and each insert a row, since there is no unique constraint on `(userId, igdbId)`. | Low | Low | Pre-existing pattern, not introduced by the integration API: `/api/games/match-and-add` has worked this way since before this PR, and `quickAddGameByTitle` extends the exact same logic to a second caller rather than adding a new race. Worst case is a duplicate library entry a user can delete, not a security boundary crossed. A proper fix (a partial unique index on `games(user_id, igdb_id) WHERE igdb_id IS NOT NULL` plus `ON CONFLICT` handling in `storage.addGame`) would need to cover every insert path that can race the same way, not just the two quick-add routes — tracked as a follow-up rather than done piecemeal here. | `server/game-quick-add.ts`, `server/routes.ts` (`POST /api/games/match-and-add`), `server/storage.ts` (`addGame`) | diff --git a/docs/SEERRNG.md b/docs/SEERRNG.md index c405ea227..6f68bc504 100644 --- a/docs/SEERRNG.md +++ b/docs/SEERRNG.md @@ -16,7 +16,7 @@ may still label the provider "QuestarrNG" in its own UI. ## Set up -1. In Questarr, open **Settings → Integrations → API Keys** and create a key with the access +1. In Questarr, open **Settings → Connections → API Keys** and create a key with the access **Game requests (SeerrNG)**. Pick an expiry (or **Never**) and copy the key; Questarr stores only a hash. 2. In SeerrNG, add a software provider pointing to your Questarr address and paste the key. 3. Turn on **auto-search** in Questarr (Settings → Search). A request is added to the library as diff --git a/docs/STEAM_LIBRARY.md b/docs/STEAM_LIBRARY.md index e490e1600..593eeeb8f 100644 --- a/docs/STEAM_LIBRARY.md +++ b/docs/STEAM_LIBRARY.md @@ -1,6 +1,6 @@ # Import owned Steam games -In **Settings → Integrations**, save your SteamID64, then use **Preview owned +In **Settings → Connections**, save your SteamID64, then use **Preview owned games**. All untracked games are selected by default. Choose **Import selected** once to import a large library, including thousands of games, without manually submitting batches. From 85ccd228341d0f0c2b72e56e02df42c4ea708220 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 08:08:41 +0000 Subject: [PATCH 18/33] Document the release score cache fix Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 4c5736700..70b1a2848 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -45,6 +45,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Release scores after a profile change**: search results no longer keep the scores computed with the previous release profile after you save the release profile or a custom format (#1376). - **Manual import retries**: confirming a manual import again no longer transfers the files twice or sends a finished download back to manual review, and a second confirmation while the first is still running is refused with a clear message (#1275, #1359). - **Switch 2, Nintendo 64 and remake releases**: Switch 2 is now a platform of its own, `Nintendo 64`/`N64` markers are read as a platform, and a remake is kept distinct from the original game, so these releases are no longer scored as title spinoffs of another game (#1345, #1356). - **xREL checks**: a malformed xREL response is treated as unavailable, never as an empty result (#1305). A release missing from a full, truncated xREL list is reported as unknown instead of not found (#1309). xREL results are kept across long auto-search intervals and large wanted lists (#1307). The trust badge says that p2p releases cannot be checked for nukes (#1306). From 9eaf6268f4b4a242d415cb800977d36ecebd85f2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 13:08:25 +0000 Subject: [PATCH 19/33] Merge main and document the per-section Settings pages Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 70b1a2848..0c3995c8c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -41,7 +41,7 @@ All notable changes to this project will be documented in this file. ### Changed -- **Settings reorganized**: the tabs are now **General**, **Search & Downloads**, **Release Scoring**, **Notifications**, **Connections**, **Import**, **Security** and **System**. Release scoring and the release classification cards moved to their own **Release Scoring** tab, and the IGDB card comes first under **Connections** (previously **Integrations**). Links to the classification review from older notifications still open the right card. Each Settings card now shows unsaved changes and saves on its own, muted text and primary buttons meet WCAG AA contrast, and the page width is capped (#1378, #1380, #1381, #1382). +- **Settings reorganized**: each section now has its own page under `/settings` (for example `/settings/connections`), listed in a sidebar: **General**, **Search & Downloads**, **Release Scoring**, **Notifications**, **Connections**, **Import**, **Security** and **System**. Release scoring and the release classification cards moved to their own **Release Scoring** page, and the IGDB card comes first under **Connections** (previously **Integrations**). Links to the classification review from older notifications still open the right card. Each Settings card now shows unsaved changes and saves on its own, muted text and primary buttons meet WCAG AA contrast, and the page width is capped (#1378, #1380, #1381, #1382, #1390). ### Fixed From 390f50c80d2c02ee85ee17d7f9be6d207e1fbac0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 17:08:16 +0000 Subject: [PATCH 20/33] Document starting the container as a non-root user Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 0c3995c8c..322c65fa9 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Added +- **Start the container as a non-root user**: the Docker image now starts when the platform runs it as a fixed non-root user, such as TrueNAS Apps, Kubernetes `runAsUser` or `docker run --user`. `PUID` and `PGID` are ignored in that case, and the entrypoint only checks that `/app/data` (and an existing database file) is writable by that user, with a clear error if it is not (Questarr-mgmt#104). - **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). - **Folder for single-file releases**: **Settings → Import** has a new **Folder for single-file releases** switch. When on, a release that is one file is imported into its own folder named like the game, inside the platform folder, as multi-file releases already are. On by default, including for existing installs; switch it off to keep a single file directly in the platform folder (Doezer/Questarr#1375). - **Replace the previous version after an upgrade**: **Settings → Import** has a new **Previous version after an upgrade** choice. With **Move it to .questarr-replaced** or **Delete it**, a new full release of a game that already has files in your library takes their place: the old version is kept until the new one is imported, then archived under `.questarr-replaced` in the library root or deleted, and it is put back if the import fails. When both versions use the same folder the import no longer waits for a manual review. The replacement is recorded in **Activity → History** and notified. Off by default (**Keep it**), which leaves imports exactly as before; DLC, updates and extras never replace anything. From 64db7c78c985dcf71d76052df089333610c91b28 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 08:09:01 +0000 Subject: [PATCH 21/33] Document the Helm chart published on GHCR Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 322c65fa9..98b2c71f5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Added +- **Helm chart on GHCR**: the Helm chart is now published as an OCI chart, so you can install it with `helm install questarr oci://ghcr.io/doezer/charts/questarr --namespace questarr --create-namespace` instead of from a clone (chart version 0.1.4, with Artifact Hub metadata). A version that is already published is never overwritten (#1389). - **Start the container as a non-root user**: the Docker image now starts when the platform runs it as a fixed non-root user, such as TrueNAS Apps, Kubernetes `runAsUser` or `docker run --user`. `PUID` and `PGID` are ignored in that case, and the entrypoint only checks that `/app/data` (and an existing database file) is writable by that user, with a clear error if it is not (Questarr-mgmt#104). - **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). - **Folder for single-file releases**: **Settings → Import** has a new **Folder for single-file releases** switch. When on, a release that is one file is imported into its own folder named like the game, inside the platform folder, as multi-file releases already are. On by default, including for existing installs; switch it off to keep a single file directly in the platform folder (Doezer/Questarr#1375). From 67118cddfbf62d61da7c9bbf463aac991216d5a7 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 08:40:59 +0000 Subject: [PATCH 22/33] Document the backlog burn-down, play time range and export, Steam pre-tracking import and ambiguous release fix Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 98b2c71f5..fcdd1cd32 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file. ### Added +- **Backlog burn-down**: the **Statistics** page has a **Backlog burn-down** section for the games you own but have not finished (**Owned** or **Playing**). It shows the games left, the time left from the IGDB Time to Beat minus what you played, your pace over the last 28 days and the date the backlog would be cleared, with a chart per week or month of the backlog size and the games completed. Questarr now records each status change of a game to draw it, with a starting point for the games you already had (#1397). See [Play time](PLAY_TIME.md#backlog-burn-down). +- **Play time statistics range and export**: the play time statistics gain a **Range** selector (all time, last 7, 30 or 90 days, last 12 months or custom days), a heatmap of play per day, the split by weekday and time of day, session length statistics (average, median and length bands) and **Export CSV / JSON** of the sessions of the selected range (#1396). See [Play time](PLAY_TIME.md#range-and-export). +- **Import Steam play time from before tracking**: **Settings → Steam → Steam play time → Preview import** lists, per game, what Steam holds minus what Questarr already recorded, and **Import** records the games you leave ticked as one estimated session each (shown as "Steam · before tracking"). It never runs by itself and imports a game only once (#1398). - **Helm chart on GHCR**: the Helm chart is now published as an OCI chart, so you can install it with `helm install questarr oci://ghcr.io/doezer/charts/questarr --namespace questarr --create-namespace` instead of from a clone (chart version 0.1.4, with Artifact Hub metadata). A version that is already published is never overwritten (#1389). - **Start the container as a non-root user**: the Docker image now starts when the platform runs it as a fixed non-root user, such as TrueNAS Apps, Kubernetes `runAsUser` or `docker run --user`. `PUID` and `PGID` are ignored in that case, and the entrypoint only checks that `/app/data` (and an existing database file) is writable by that user, with a clear error if it is not (Questarr-mgmt#104). - **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). @@ -47,6 +50,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Ambiguous releases and auto-download**: an accepted release whose title match is ambiguous (an unconfirmed group suffix) now counts for the **has results** badge and the **Game Available** notification, and no longer blocks the auto-download of a lone clear match; auto-download stays limited to clear matches and keeps paging when only ambiguous releases are found. Standalone region words (EUR, USA, JPN, PAL, NTSC) are treated as release metadata (#1391, #1394). - **Release scores after a profile change**: search results no longer keep the scores computed with the previous release profile after you save the release profile or a custom format (#1376). - **Manual import retries**: confirming a manual import again no longer transfers the files twice or sends a finished download back to manual review, and a second confirmation while the first is still running is refused with a clear message (#1275, #1359). - **Switch 2, Nintendo 64 and remake releases**: Switch 2 is now a platform of its own, `Nintendo 64`/`N64` markers are read as a platform, and a remake is kept distinct from the original game, so these releases are no longer scored as title spinoffs of another game (#1345, #1356). From aee24dde2d920fddf6971535ec144521f04d7022 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 13:09:12 +0000 Subject: [PATCH 23/33] Document the Real-Debrid downloader in the 1.7.0 changelog and docs navigation Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 3 ++- docs/docs.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index fcdd1cd32..7a70aab6f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Added +- **Real-Debrid downloader**: **Downloaders → Add Downloader** has a new **Real-Debrid** type for premium accounts. Real-Debrid fetches the torrent on its servers, then Questarr copies the finished files to a local staging folder and runs the normal import on them. Connect with the device-code flow (**Connect Real-Debrid**, tokens stored encrypted on the server) or paste a private API token; expired tokens refresh by themselves. Pause and resume are not available (#1395). See [Real-Debrid](REAL-DEBRID.md). - **Backlog burn-down**: the **Statistics** page has a **Backlog burn-down** section for the games you own but have not finished (**Owned** or **Playing**). It shows the games left, the time left from the IGDB Time to Beat minus what you played, your pace over the last 28 days and the date the backlog would be cleared, with a chart per week or month of the backlog size and the games completed. Questarr now records each status change of a game to draw it, with a starting point for the games you already had (#1397). See [Play time](PLAY_TIME.md#backlog-burn-down). - **Play time statistics range and export**: the play time statistics gain a **Range** selector (all time, last 7, 30 or 90 days, last 12 months or custom days), a heatmap of play per day, the split by weekday and time of day, session length statistics (average, median and length bands) and **Export CSV / JSON** of the sessions of the selected range (#1396). See [Play time](PLAY_TIME.md#range-and-export). - **Import Steam play time from before tracking**: **Settings → Steam → Steam play time → Preview import** lists, per game, what Steam holds minus what Questarr already recorded, and **Import** records the games you leave ticked as one estimated session each (shown as "Steam · before tracking"). It never runs by itself and imports a game only once (#1398). @@ -65,7 +66,7 @@ All notable changes to this project will be documented in this file. ### Vulnerabilities Addressed -Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`). The other 153 bumped packages matched no patched advisory. +Inventory from `scripts/cve-report.mjs` / `scripts/cwe-report.mjs` against OSV.dev (`v1.6.0` → `main`). The other 154 bumped packages matched no patched advisory. #### Production dependencies diff --git a/docs/docs.json b/docs/docs.json index 52d333025..3f28d2633 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -48,6 +48,7 @@ "SEERRNG", "GAMEYFIN", "DOWNLOADERS_COMPATIBILITY", + "REAL-DEBRID", "synology-download-station-api-notes" ] }, From 63c9eb2656e4afc2b83aa1281f1a9d9d9d3c723f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 13:09:32 +0000 Subject: [PATCH 24/33] Fix the Real-Debrid page so the Mintlify build parses it Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/REAL-DEBRID.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/REAL-DEBRID.md b/docs/REAL-DEBRID.md index 5e0f2b742..162c85a56 100644 --- a/docs/REAL-DEBRID.md +++ b/docs/REAL-DEBRID.md @@ -13,7 +13,7 @@ folder** and runs the normal import pipeline on them. A premium Real-Debrid acco the code, and approve. Questarr stores the resulting tokens encrypted on the server; they never reach the browser. 4. Optional: instead of Connect, paste a private API token from - into the password field. + [https://real-debrid.com/apitoken](https://real-debrid.com/apitoken) into the password field. ## How it behaves From 8f3288984d4bb1c01b7c28a7249a6491b41ad10c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 08:08:27 +0000 Subject: [PATCH 25/33] Document update patches with auto-download, extras, NZB links, remake scoring and the RomM Switch 2 folder in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index e4203618c..fa9f6348d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -17,6 +17,8 @@ All notable changes to this project will be documented in this file. - **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). - **Folder for single-file releases**: **Settings → Import** has a new **Folder for single-file releases** switch. When on, a release that is one file is imported into its own folder named like the game, inside the platform folder, as multi-file releases already are. On by default, including for existing installs; switch it off to keep a single file directly in the platform folder (Doezer/Questarr#1375). - **Replace the previous version after an upgrade**: **Settings → Import** has a new **Previous version after an upgrade** choice. With **Move it to .questarr-replaced** or **Delete it**, a new full release of a game that already has files in your library takes their place: the old version is kept until the new one is imported, then archived under `.questarr-replaced` in the library root or deleted, and it is put back if the import fails. When both versions use the same folder the import no longer waits for a manual review. The replacement is recorded in **Activity → History** and notified. Off by default (**Keep it**), which leaves imports exactly as before; DLC, updates and extras never replace anything. +- **Update patch with an auto-downloaded release**: **Settings → Search & Downloads → Auto-download rules** has a new **Include updates automatically** switch. When auto-download takes a release for a wanted game, it also takes the newest update patch that names that release's version as its starting point. The game is not marked as downloaded by the patch alone: its status stays as it was while the main release is still downloading, and the patch is only imported once the main release is. Off by default (Questarr-mgmt#40, #1406). +- **Extras and update-only patches**: the download dialog (**Download with Updates & Extras?**) lists the smaller extras found for the game (soundtrack, artbook and similar, up to a size set in **Auto-download rules → Suggest extras up to (% of the game's size)**, 25% by default) so you can tick the ones you want with the main game. A new **Prefer update-only releases** switch makes the automatic upgrade take a patch that starts from the installed version over a full release of the same new version, which is a much smaller download. Off by default (Questarr-mgmt#40, #1403). - **Automatic upgrades of owned games**: the **Updates for Owned Games** setting (and the per-game **Updates** field) has a new **Download automatically** choice. With it, the scheduled search downloads a release whose name proves a newer version than the installed one: a full release with a higher version, or an update patch that says it starts from the installed version. Anything it cannot prove (no readable version, a different numbering scheme, a patch from another base, an unknown installed version) is left alone and flagged as before. The game stays owned while the new version downloads, each automatic upgrade is listed in **Activity → History** as **Upgrade** with the reason, and an "Upgrade Started" notification is sent. Opt-in: the default stays **Notify me**. It needs a scoring profile (Questarr-mgmt#97). - **Replace owned releases with better-scored ones**: for owned games set to **Download automatically**, **Settings → Search & Downloads → Download Rules → Replace owned releases with better-scored ones** also swaps the release you downloaded for a better-scored release of the same version, until the installed release reaches the **Stop at score** cutoff. A release must score at least **Minimum score gain** points more (10 by default) to be taken. The installed release is the last full release Questarr downloaded for the game, scored in the same search as the others: when it is no longer listed by your indexers, or carries another version than the installed one, nothing is swapped. Off by default (Questarr-mgmt#97). - **Auto-download the best-scored release**: with **Settings → Search & Downloads → Download Rules → Auto-download the best-scored release** switched on, auto-download no longer stops when several releases remain for a wanted game: it takes the one your scoring profile ranks first, skipping a release that already failed for that game. Off by default, so the "Multiple Results Found" notification is unchanged until you opt in; it needs an active scoring profile and auto-download. @@ -53,6 +55,9 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Torznab results with an NZB link**: a Torznab result whose link is an `.nzb` file is treated as a usenet download and sent to your usenet client, instead of failing as a torrent (#1233, #1401). +- **Remakes scored as spinoffs**: a remake release is no longer scored as a spinoff of another game when IGDB knows no separate remake of that title (#1365, #1407). +- **RomM folder for Switch 2**: a Switch 2 game imported into RomM goes to the `switch-2` folder, and a platform outside RomM's list no longer gets a wrong folder (#1393, #1402). - **Ambiguous releases and auto-download**: an accepted release whose title match is ambiguous (an unconfirmed group suffix) now counts for the **has results** badge and the **Game Available** notification, and no longer blocks the auto-download of a lone clear match; auto-download stays limited to clear matches and keeps paging when only ambiguous releases are found. Standalone region words (EUR, USA, JPN, PAL, NTSC) are treated as release metadata (#1391, #1394). - **Release scores after a profile change**: search results no longer keep the scores computed with the previous release profile after you save the release profile or a custom format (#1376). - **Manual import retries**: confirming a manual import again no longer transfers the files twice or sends a finished download back to manual review, and a second confirmation while the first is still running is refused with a clear message (#1275, #1359). From fcf30b35001b940404e669a9fd13efb2eaa54061 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 18:04:12 +0000 Subject: [PATCH 26/33] Document direct-download links, setup diagnostics, manual import progress and version detection in the 1.7.0 docs Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 4 ++++ docs/REAL-DEBRID.md | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index fa9f6348d..66f449263 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file. ### Added +- **Direct-download links through Real-Debrid**: with a Real-Debrid downloader set up, the **Download** menu of a game has **Add download links**. Paste the file-hoster links (one per line, or a whole forum post or BBCode: Questarr picks out the links) or attach a DLC, CCF or RSDF container, and Real-Debrid fetches them. Questarr then imports the files like any other download. Up to 500 links per job. See [Real-Debrid](REAL-DEBRID.md#direct-download-links) (#1411). +- **Setup diagnostics**: a new **Diagnostics** page (under System) checks the library root, root folders and path mappings, every indexer and download client, and the tools (7-Zip, unrar, ClamAV, Apprise), and explains how to fix each problem. It changes nothing. **Copy report** gives a report with hosts, keys and personal paths redacted, ready to paste into an issue (#1405). +- **Persistent progress for manual imports**: a manual import now shows its progress (starting, security scan, extraction, transfer) in the review dialog and keeps it if you close the dialog or reload. Reopening the review shows the operation in progress or its result instead of starting a second one (#1404). - **Real-Debrid downloader**: **Downloaders → Add Downloader** has a new **Real-Debrid** type for premium accounts. Real-Debrid fetches the torrent on its servers, then Questarr copies the finished files to a local staging folder and runs the normal import on them. Connect with the device-code flow (**Connect Real-Debrid**, tokens stored encrypted on the server) or paste a private API token; expired tokens refresh by themselves. Pause and resume are not available (#1395). See [Real-Debrid](REAL-DEBRID.md). - **Backlog burn-down**: the **Statistics** page has a **Backlog burn-down** section for the games you own but have not finished (**Owned** or **Playing**). It shows the games left, the time left from the IGDB Time to Beat minus what you played, your pace over the last 28 days and the date the backlog would be cleared, with a chart per week or month of the backlog size and the games completed. Questarr now records each status change of a game to draw it, with a starting point for the games you already had (#1397). See [Play time](PLAY_TIME.md#backlog-burn-down). - **Play time statistics range and export**: the play time statistics gain a **Range** selector (all time, last 7, 30 or 90 days, last 12 months or custom days), a heatmap of play per day, the split by weekday and time of day, session length statistics (average, median and length bands) and **Export CSV / JSON** of the sessions of the selected range (#1396). See [Play time](PLAY_TIME.md#range-and-export). @@ -55,6 +58,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Version detection in release names**: the version extraction used by automatic upgrades recognises more repackers and no longer trusts names that cannot be read reliably, so such releases are left alone instead of being taken as an upgrade (Questarr-mgmt#97, #1409). - **Torznab results with an NZB link**: a Torznab result whose link is an `.nzb` file is treated as a usenet download and sent to your usenet client, instead of failing as a torrent (#1233, #1401). - **Remakes scored as spinoffs**: a remake release is no longer scored as a spinoff of another game when IGDB knows no separate remake of that title (#1365, #1407). - **RomM folder for Switch 2**: a Switch 2 game imported into RomM goes to the `switch-2` folder, and a platform outside RomM's list no longer gets a wrong folder (#1393, #1402). diff --git a/docs/REAL-DEBRID.md b/docs/REAL-DEBRID.md index 162c85a56..8dd328db9 100644 --- a/docs/REAL-DEBRID.md +++ b/docs/REAL-DEBRID.md @@ -27,6 +27,14 @@ folder** and runs the normal import pipeline on them. A premium Real-Debrid acco - Expired access tokens are refreshed automatically. If Real-Debrid rejects the credentials, use **Reconnect**. +## Direct-download links + +Real-Debrid can also fetch file-hoster links, not only torrents. On a game, open the **Download** menu and choose **Add download links**: + +- Paste the links, one per line or a whole post (forum text and BBCode are fine): Questarr keeps the http(s) links, drops the duplicates and the trailing punctuation. +- Or attach a DLC, CCF or RSDF container file. +- Up to 500 links per job. Real-Debrid fetches them, then Questarr copies the files to the staging folder and imports them like a torrent. + ## Notes - The staging folder must be reachable by the import pipeline like any download folder; no path From 32f5e5c588be7816c376da66318b367aaa3fa194 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 08:09:15 +0000 Subject: [PATCH 27/33] Document Steam achievements sync, TorBox link-only mode and Backlog roulette draws in the 1.7.0 docs Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/API.md | 49 +++++++++++++++++++++++++--------------- docs/BACKLOG_ROULETTE.md | 17 ++++++++++++++ docs/CHANGELOG.md | 3 +++ docs/TORBOX.md | 17 ++++++++++++-- 4 files changed, 66 insertions(+), 20 deletions(-) diff --git a/docs/API.md b/docs/API.md index 2364b2e9a..658ff9d0e 100644 --- a/docs/API.md +++ b/docs/API.md @@ -146,24 +146,25 @@ User-defined groups of games. A `manual` collection holds an explicit list of ga ## Downloaders -| Method | Path | Auth Required | Request Body | Response | -| ------ | ---------------------------------------------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| GET | `/api/downloaders` | JWT | — | `Downloader[]` (passwords masked as `********`) | -| GET | `/api/downloaders/enabled` | JWT | — | `Downloader[]` (masked) | -| GET | `/api/downloaders/storage` | JWT | — | `{ downloaderId, downloaderName, freeSpace, error? }[]`, cached 30s server-side | -| GET | `/api/downloaders/:id` | JWT | — | `Downloader` (masked); 404 if not found | -| POST | `/api/downloaders` | JWT + `sensitiveEndpointLimiter`, `sanitizeDownloaderData`, `validateRequest` | `{ name (1–200), type (transmission\|rtorrent\|qbittorrent\|sabnzbd\|nzbget), url (full URL or bare hostname/IP), username?, password?, enabled?, downloadPath? (no ".."), label?, urlPath? }` via `insertDownloaderSchema`; SSRF-checked via `isSafeUrl` | 201 `Downloader` (masked); 400 invalid/unsafe URL | -| PATCH | `/api/downloaders/:id` | JWT + `sensitiveEndpointLimiter`, `sanitizeDownloaderUpdateData`, `validateRequest` | Partial of above plus `priority?`, `category?`; `password` equal to the redacted placeholder = keep unchanged | Updated `Downloader` (masked); 404 if not found | -| DELETE | `/api/downloaders/:id` | JWT + `sensitiveEndpointLimiter` | — | 204; 404 if not found | -| POST | `/api/downloaders/test` | JWT | `{ type, url, port?, useSsl?, urlPath?, username?, password?, downloadPath?, category?, label?, allowInsecureLan?, ... }` — manual checks, SSRF-checked | Connection test result object | -| POST | `/api/downloaders/:id/test` | JWT | — | Connection test result for saved downloader; 404 if not found | -| POST | `/api/downloaders/:id/downloads` | JWT + `sensitiveEndpointLimiter`, `sanitizeDownloaderDownloadData`, `validateRequest` | `{ url, title, category?, downloadPath?, priority?, downloadType?, password? (≤200 chars) }` | Add-download result; 404 downloader not found; 400 if downloader disabled | -| GET | `/api/downloaders/:id/downloads` | JWT | — | Downloads array from that client; 404 if downloader not found | -| GET | `/api/downloaders/:id/downloads/:downloadId` | JWT | — | Single download status object; 404 if not found | -| GET | `/api/downloaders/:id/downloads/:downloadId/details` | JWT | — | Detailed info (files, trackers); 404 if not found | -| POST | `/api/downloaders/:id/downloads/:downloadId/pause` | JWT | — | Pause result object | -| POST | `/api/downloaders/:id/downloads/:downloadId/resume` | JWT | — | Resume result object | -| DELETE | `/api/downloaders/:id/downloads/:downloadId` | JWT | Query: `deleteFiles?` | Removal result object | +| Method | Path | Auth Required | Request Body | Response | +| ------ | ---------------------------------------------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| GET | `/api/downloaders` | JWT | — | `Downloader[]` (passwords masked as `********`) | +| GET | `/api/downloaders/enabled` | JWT | — | `Downloader[]` (masked) | +| GET | `/api/downloaders/storage` | JWT | — | `{ downloaderId, downloaderName, freeSpace, error? }[]`, cached 30s server-side | +| GET | `/api/downloaders/:id` | JWT | — | `Downloader` (masked); 404 if not found | +| POST | `/api/downloaders` | JWT + `sensitiveEndpointLimiter`, `sanitizeDownloaderData`, `validateRequest` | `{ name (1–200), type (transmission\|rtorrent\|qbittorrent\|sabnzbd\|nzbget), url (full URL or bare hostname/IP), username?, password?, enabled?, downloadPath? (no ".."), label?, urlPath? }` via `insertDownloaderSchema`; SSRF-checked via `isSafeUrl` | 201 `Downloader` (masked); 400 invalid/unsafe URL | +| PATCH | `/api/downloaders/:id` | JWT + `sensitiveEndpointLimiter`, `sanitizeDownloaderUpdateData`, `validateRequest` | Partial of above plus `priority?`, `category?`; `password` equal to the redacted placeholder = keep unchanged | Updated `Downloader` (masked); 404 if not found | +| DELETE | `/api/downloaders/:id` | JWT + `sensitiveEndpointLimiter` | — | 204; 404 if not found | +| POST | `/api/downloaders/test` | JWT | `{ type, url, port?, useSsl?, urlPath?, username?, password?, downloadPath?, category?, label?, allowInsecureLan?, ... }` — manual checks, SSRF-checked | Connection test result object | +| POST | `/api/downloaders/:id/test` | JWT | — | Connection test result for saved downloader; 404 if not found | +| POST | `/api/downloaders/:id/downloads` | JWT + `sensitiveEndpointLimiter`, `sanitizeDownloaderDownloadData`, `validateRequest` | `{ url, title, category?, downloadPath?, priority?, downloadType?, password? (≤200 chars) }` | Add-download result; 404 downloader not found; 400 if downloader disabled | +| GET | `/api/downloaders/:id/downloads` | JWT | — | Downloads array from that client; 404 if downloader not found | +| GET | `/api/downloaders/:id/downloads/:downloadId` | JWT | — | Single download status object; 404 if not found | +| GET | `/api/downloaders/:id/downloads/:downloadId/link` | JWT | — | `{ url }`, a fresh short-lived download link (link-only TorBox downloaders); 404 downloader not found or no link yet; 400 if the downloader gives no links | +| GET | `/api/downloaders/:id/downloads/:downloadId/details` | JWT | — | Detailed info (files, trackers); 404 if not found | +| POST | `/api/downloaders/:id/downloads/:downloadId/pause` | JWT | — | Pause result object | +| POST | `/api/downloaders/:id/downloads/:downloadId/resume` | JWT | — | Resume result object | +| DELETE | `/api/downloaders/:id/downloads/:downloadId` | JWT | Query: `deleteFiles?` | Removal result object | ## Root Folders / Library Scan @@ -494,6 +495,18 @@ router), both behind the global auth gate plus explicit `authenticateToken`. | GET | `/api/steam/playtime/import/preview` | — | `{ candidates: [{ gameId, title, steamMinutes, recordedMinutes, importMinutes, lastPlayedAt }], skipped }`; writes nothing; 400 if Steam is not set up; 502 on a Steam failure | | POST | `/api/steam/playtime/import` | `{ gameIds?: string[] }` | `{ sessionsAdded, minutesAdded }`. Imports one `steam_import` session per listed game (all when omitted); minutes are recomputed server side; 409 while a sync or import runs; 400 on another body | +### Steam achievements + +`server/steam-achievements-routes.ts` — turns the Steam achievements sync on or off, runs it and reads +the stored progress. All routes require a JWT. + +| Method | Path | Body | Response | +| ------ | ------------------------------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| GET | `/api/steam/achievements` | — | `{ available, enabled, lastSyncAt, ... }` status; `available` needs a Steam key and a linked Steam ID | +| PUT | `/api/steam/achievements` | `{ enabled: boolean }` | The same status; 400 on another body | +| POST | `/api/steam/achievements/sync` | — | `{ result, status }`; 400 if the sync is off or Steam is not set up; a run within 30 minutes of the last one is refused | +| GET | `/api/achievements/progress` | — | Stored progress per game (unlocked, total, rarest unlock), content filters applied | + ### Owned Steam library `server/steam-library-routes.ts` — preview and import endpoints. diff --git a/docs/BACKLOG_ROULETTE.md b/docs/BACKLOG_ROULETTE.md index 697e354ac..62139003a 100644 --- a/docs/BACKLOG_ROULETTE.md +++ b/docs/BACKLOG_ROULETTE.md @@ -46,3 +46,20 @@ that match the page search and filters. The pool is fixed to **Currently playing**, and there is no **Mark as Playing** action because those games already have that status. The toolbar wraps at narrower widths to keep the picker reachable in both Library and Playing. + +## Weight the draw + +Open the extra options in the dialog to steer the draw instead of leaving it to +pure chance: + +- **Favour**: **Pure chance** (default), **Oldest first**, **Quick wins** or + **Highest rated**. The favoured games are drawn more often; the others can + still come up. +- **Mood**: **Any mood**, **Relaxing**, **Short and sweet** or **Co-op**, based on + the genres, themes and modes stored on each game. +- **Genre** and **Platform** narrow the pool further. +- **Only installed games** keeps only games already installed. + +**Not now** snoozes the shown game so it stays out of the next draws for a +while; the snooze is kept in this browser. **Bring them back** clears all +snoozes. A skipped game is not offered again until the pool runs dry. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 47a4df9c2..b2db5a561 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file. ### Added +- **Steam achievements sync**: turn it on in **Settings → Steam** to keep the achievement progress of your owned and playing Steam games up to date (every 12 hours, or with **Sync now**). Library cards show the unlocked percentage, the **Stats** page gets an achievements summary (rate, games tracked, rarest unlock), and a notification tells you when new achievements were unlocked. The first sync only records your current progress, so nothing floods you at the start. The Steam profile's Game details must be public (#1419). +- **Link-only mode for TorBox**: a new TorBox downloader no longer copies files to your server by default. Finished downloads stay on TorBox and the **Downloads** page shows **Copy link** and **Download** buttons that request a fresh link on demand (a zip when the torrent holds several files); nothing is imported. Switch **Fetch files to this server** on to keep the previous behaviour with a staging folder, which existing downloaders keep. See [TorBox](TORBOX.md) (#1418). +- **Backlog roulette, weighted draws**: choose what to **Favour** (Pure chance, Oldest first, Quick wins, Highest rated), a **Mood** (Relaxing, Short and sweet, Co-op), a genre, a platform and **Only installed games**; **Not now** snoozes a game for a while and **Bring them back** clears the snoozes. See [Backlog roulette](BACKLOG_ROULETTE.md) (#1417). - **TorBox downloader**: **Downloaders → Add Downloader** has a new **TorBox** type. Like Real-Debrid, TorBox fetches the torrent on its servers and Questarr copies the finished files to a local staging folder and imports them. Paste an API key (stored encrypted on the server) and set the **Staging Path**. Torrents other than the ones Questarr added are left alone, and a failed copy is retried with a growing delay. Not tested against a real account yet (Questarr-mgmt#44, #1414). See [TorBox](TORBOX.md). - **Recommended for You**: **Discover** has a new **Recommended for You** row built from your own library: your genres, themes, developers and game modes, weighted by your ratings and by what you play and finish. Each game says why it is suggested ("Because you rated Hades 9/10", "More from…"), games already in your library, wishlist or hidden are never suggested, and the row only appears once your library says something about your taste. It is computed per user and cached (Questarr-mgmt#74, #1413). - **Direct-download RSS feeds**: a feed can be marked **Items carry file-hoster download links (send them to Real-Debrid)**. Each item then keeps the hoster links found in its content (blog pages and hosts Real-Debrid cannot unrestrict are dropped), and an item matched to a library game gets a button that opens **Add download links** with those links filled in. See [RSS feeds](RSS.md#direct-download-feeds) (Questarr-mgmt#109, #1412). diff --git a/docs/TORBOX.md b/docs/TORBOX.md index 3393e2e07..176639452 100644 --- a/docs/TORBOX.md +++ b/docs/TORBOX.md @@ -15,10 +15,23 @@ its staging code. 2. **Downloaders → Add Downloader**, type **TorBox**. 3. Paste the key in **API key**. It is stored encrypted on the server and never sent back to the browser. -4. Set the **Staging Path**: a local folder (inside the container if you use Docker) with enough - room for the files. Each torrent is copied into `//`. +4. Choose how finished files are delivered with **Fetch files to this server** (see below). + If it is on, set the **Staging Path**: a local folder (inside the container if you use Docker) + with enough room for the files. Each torrent is copied into `//`. 5. Press **Test connection**, then save. +## Link-only or local copy + +A new TorBox downloader starts in **link-only** mode (**Fetch files to this server** off): +finished downloads stay on TorBox, nothing is copied or imported, and no staging folder is needed. +On the **Downloads** page a finished TorBox download shows **Copy link** and **Download** +buttons. The link is requested when you press the button because TorBox links are short-lived: +one file's direct link, or a zip when the torrent holds several files. + +Turn **Fetch files to this server** on to copy the files to the staging folder and import them like +any other download, as described below. Downloaders created before this option existed keep +copying locally. + ## How it behaves - A torrent shows as downloading while TorBox fetches it (first half of the progress bar), then From e4d383c745f65a43c7beac8be6b37d9558e96019 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 17:08:51 +0000 Subject: [PATCH 28/33] Update the 1.7.0 docs for link-only TorBox by default and the achievements list in game details Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 4 ++-- docs/TORBOX.md | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b2db5a561..31dc3b64a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,8 +8,8 @@ All notable changes to this project will be documented in this file. ### Added -- **Steam achievements sync**: turn it on in **Settings → Steam** to keep the achievement progress of your owned and playing Steam games up to date (every 12 hours, or with **Sync now**). Library cards show the unlocked percentage, the **Stats** page gets an achievements summary (rate, games tracked, rarest unlock), and a notification tells you when new achievements were unlocked. The first sync only records your current progress, so nothing floods you at the start. The Steam profile's Game details must be public (#1419). -- **Link-only mode for TorBox**: a new TorBox downloader no longer copies files to your server by default. Finished downloads stay on TorBox and the **Downloads** page shows **Copy link** and **Download** buttons that request a fresh link on demand (a zip when the torrent holds several files); nothing is imported. Switch **Fetch files to this server** on to keep the previous behaviour with a staging folder, which existing downloaders keep. See [TorBox](TORBOX.md) (#1418). +- **Steam achievements sync**: turn it on in **Settings → Steam** to keep the achievement progress of your owned and playing Steam games up to date (every 12 hours, or with **Sync now**). Library cards show the unlocked percentage, the **Stats** page gets an achievements summary (rate, games tracked, rarest unlock), and a notification tells you when new achievements were unlocked. The first sync only records your current progress, so nothing floods you at the start. The Steam profile's Game details must be public (#1419). A game's details now list its achievements, filterable by All, Unlocked and Locked, and say what is missing (Steam key, Steam ID, linked Steam app, or a private profile) instead of hiding the section (#1427). +- **Link-only mode for TorBox**: TorBox downloaders no longer copy files to your server by default. Finished downloads stay on TorBox and the **Downloads** page shows **Copy link** and **Download** buttons that request a fresh link on demand (a zip when the torrent holds several files); nothing is imported. Link-only is the default for every TorBox downloader that has no explicit choice; switch **Fetch files to this server** on to copy files to a staging folder and import them. See [TorBox](TORBOX.md) (#1418, #1426). - **Backlog roulette, weighted draws**: choose what to **Favour** (Pure chance, Oldest first, Quick wins, Highest rated), a **Mood** (Relaxing, Short and sweet, Co-op), a genre, a platform and **Only installed games**; **Not now** snoozes a game for a while and **Bring them back** clears the snoozes. See [Backlog roulette](BACKLOG_ROULETTE.md) (#1417). - **TorBox downloader**: **Downloaders → Add Downloader** has a new **TorBox** type. Like Real-Debrid, TorBox fetches the torrent on its servers and Questarr copies the finished files to a local staging folder and imports them. Paste an API key (stored encrypted on the server) and set the **Staging Path**. Torrents other than the ones Questarr added are left alone, and a failed copy is retried with a growing delay. Not tested against a real account yet (Questarr-mgmt#44, #1414). See [TorBox](TORBOX.md). - **Recommended for You**: **Discover** has a new **Recommended for You** row built from your own library: your genres, themes, developers and game modes, weighted by your ratings and by what you play and finish. Each game says why it is suggested ("Because you rated Hades 9/10", "More from…"), games already in your library, wishlist or hidden are never suggested, and the row only appears once your library says something about your taste. It is computed per user and cached (Questarr-mgmt#74, #1413). diff --git a/docs/TORBOX.md b/docs/TORBOX.md index 176639452..2cc7fd694 100644 --- a/docs/TORBOX.md +++ b/docs/TORBOX.md @@ -22,15 +22,14 @@ its staging code. ## Link-only or local copy -A new TorBox downloader starts in **link-only** mode (**Fetch files to this server** off): +TorBox downloaders use **link-only** mode by default (**Fetch files to this server** off): finished downloads stay on TorBox, nothing is copied or imported, and no staging folder is needed. On the **Downloads** page a finished TorBox download shows **Copy link** and **Download** buttons. The link is requested when you press the button because TorBox links are short-lived: one file's direct link, or a zip when the torrent holds several files. Turn **Fetch files to this server** on to copy the files to the staging folder and import them like -any other download, as described below. Downloaders created before this option existed keep -copying locally. +any other download, as described below. A downloader without an explicit choice is link-only. ## How it behaves From 9a16a5072e705a81723dbecfa94dfa5268569169 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 08:09:38 +0000 Subject: [PATCH 29/33] Document backlog quests and the ZimaOS store in the 1.7.0 docs Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/API.md | 8 ++++++++ docs/BACKLOG_ROULETTE.md | 25 +++++++++++++++++++++++++ docs/CHANGELOG.md | 2 ++ 3 files changed, 35 insertions(+) diff --git a/docs/API.md b/docs/API.md index 658ff9d0e..4ab74318b 100644 --- a/docs/API.md +++ b/docs/API.md @@ -395,6 +395,14 @@ documented under [Settings](#settings). | ------ | -------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | POST | `/api/stats/discord-share` | JWT | `{ image: string (data URI, png/jpeg/gif/webp base64), message?: string }` — manual checks; webhook URL must match Discord's domain pattern | `{ success: true }`; 400 on missing/invalid config or image; 502 if Discord request fails | +### Backlog quests + +`server/quest-routes.ts` — requires a JWT. + +| Method | Path | Auth Required | Request Body | Response | +| ------ | ------------- | ------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| GET | `/api/quests` | JWT | — | `{ enabled, current, history, medals, backlogProgress }`; makes sure the week and month have their quests and updates their progress; days follow `timeZone` (IANA) or `tz` | + ## Play time All routes need a JWT; game routes also check that the game belongs to the caller (404 otherwise). diff --git a/docs/BACKLOG_ROULETTE.md b/docs/BACKLOG_ROULETTE.md index 62139003a..bd2c9f61d 100644 --- a/docs/BACKLOG_ROULETTE.md +++ b/docs/BACKLOG_ROULETTE.md @@ -63,3 +63,28 @@ pure chance: **Not now** snoozes the shown game so it stays out of the next draws for a while; the snooze is kept in this browser. **Bring them back** clears all snoozes. A skipped game is not offered again until the pool runs dry. + +## Backlog quests + +If you would rather be given a goal than draw one, Questarr offers a few quests +each period from your owned and playing games. They show on **Stats** (with the +history) and on **Playing**. + +| Quest | Period | Goal | +| -------------------- | ------ | --------------------------------------------------------------- | +| **Weekend Sprint** | Week | Finish a game of under 6 hours from your backlog. | +| **Backlog Cleanup** | Week | Finish any game from your backlog. | +| **Backlog Slayer** | Month | Play or finish 3 games added more than a year before the month. | +| **Retro Explorer** | Month | Play or finish a game released before 2005. | +| **Monthly Finisher** | Month | Finish 2 games from your backlog. | + +Each period gets up to two quests, picked in a stable order so reloading the +page does not change them. Progress follows your status changes and play +sessions; only finishing a game that was in your backlog counts. A quest ends as +**Completed**, or **Missed** once its period is over, and stays in the history. +Completing quests unlocks medals (Sprinter, Backlog Slayer, Retro Explorer, +Regular for five quests). The card also shows how much of the month's backlog +you have cleared. + +Turn the quests, medals and backlog progress off in **Settings → Backlog +quests**. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 31dc3b64a..aa2a93031 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file. ### Added +- **Weekly and monthly backlog quests**: each week and month Questarr picks a few quests from your owned and playing games (Weekend Sprint, Backlog Cleanup, Backlog Slayer, Retro Explorer, Monthly Finisher). Progress follows status changes and play sessions, finished and missed quests are kept as history, medals are earned along the way, and the month's backlog progress is shown on **Stats** and **Playing**. Turn them off in **Settings → Backlog quests**. See [Backlog roulette](BACKLOG_ROULETTE.md#backlog-quests) (#1416). +- **ZimaOS store**: Questarr can be installed on ZimaOS from its own third-party store, and the home-server guide and the release checklist now cover it. The CasaOS AppFile is kept as the legacy option. See [Home server apps](HOME_SERVER_APPS.md#zimaos) (#1408). - **Steam achievements sync**: turn it on in **Settings → Steam** to keep the achievement progress of your owned and playing Steam games up to date (every 12 hours, or with **Sync now**). Library cards show the unlocked percentage, the **Stats** page gets an achievements summary (rate, games tracked, rarest unlock), and a notification tells you when new achievements were unlocked. The first sync only records your current progress, so nothing floods you at the start. The Steam profile's Game details must be public (#1419). A game's details now list its achievements, filterable by All, Unlocked and Locked, and say what is missing (Steam key, Steam ID, linked Steam app, or a private profile) instead of hiding the section (#1427). - **Link-only mode for TorBox**: TorBox downloaders no longer copy files to your server by default. Finished downloads stay on TorBox and the **Downloads** page shows **Copy link** and **Download** buttons that request a fresh link on demand (a zip when the torrent holds several files); nothing is imported. Link-only is the default for every TorBox downloader that has no explicit choice; switch **Fetch files to this server** on to copy files to a staging folder and import them. See [TorBox](TORBOX.md) (#1418, #1426). - **Backlog roulette, weighted draws**: choose what to **Favour** (Pure chance, Oldest first, Quick wins, Highest rated), a **Mood** (Relaxing, Short and sweet, Co-op), a genre, a platform and **Only installed games**; **Not now** snoozes a game for a while and **Bring them back** clears the snoozes. See [Backlog roulette](BACKLOG_ROULETTE.md) (#1417). From dad8c8751bb4b4766b276786e4ec1f034252317c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 07:29:50 +0000 Subject: [PATCH 30/33] Add the Artifact Hub badge to the README and mention the listing in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- README.md | 1 + docs/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b91943760..c73c12850 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ A video game management application inspired by the -Arr apps (Sonarr, Radarr, P [![Docker Pulls](https://img.shields.io/docker/pulls/doezer/questarr?logo=docker&logoColor=white)](https://hub.docker.com/r/doezer/questarr) [![GHCR](https://img.shields.io/badge/ghcr.io-questarr-blue?logo=github&logoColor=white)](https://github.com/Doezer/Questarr/pkgs/container/questarr) +[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/questarr)](https://artifacthub.io/packages/search?repo=questarr) [![License](https://img.shields.io/github/license/Doezer/Questarr)](https://github.com/Doezer/Questarr/blob/main/COPYING) [![GitHub release](https://img.shields.io/github/v/release/Doezer/Questarr)](https://github.com/Doezer/Questarr/releases) [![GitHub release date](https://img.shields.io/github/release-date/Doezer/Questarr)](https://github.com/Doezer/Questarr/releases) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 3801eb468..bd58ac56c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -24,7 +24,7 @@ All notable changes to this project will be documented in this file. - **Backlog burn-down**: the **Statistics** page has a **Backlog burn-down** section for the games you own but have not finished (**Owned** or **Playing**). It shows the games left, the time left from the IGDB Time to Beat minus what you played, your pace over the last 28 days and the date the backlog would be cleared, with a chart per week or month of the backlog size and the games completed. Questarr now records each status change of a game to draw it, with a starting point for the games you already had (#1397). See [Play time](PLAY_TIME.md#backlog-burn-down). - **Play time statistics range and export**: the play time statistics gain a **Range** selector (all time, last 7, 30 or 90 days, last 12 months or custom days), a heatmap of play per day, the split by weekday and time of day, session length statistics (average, median and length bands) and **Export CSV / JSON** of the sessions of the selected range (#1396). See [Play time](PLAY_TIME.md#range-and-export). - **Import Steam play time from before tracking**: **Settings → Steam → Steam play time → Preview import** lists, per game, what Steam holds minus what Questarr already recorded, and **Import** records the games you leave ticked as one estimated session each (shown as "Steam · before tracking"). It never runs by itself and imports a game only once (#1398). -- **Helm chart on GHCR**: the Helm chart is now published as an OCI chart, so you can install it with `helm install questarr oci://ghcr.io/doezer/charts/questarr --namespace questarr --create-namespace` instead of from a clone (chart version 0.1.4, with Artifact Hub metadata). A version that is already published is never overwritten (#1389). +- **Helm chart on GHCR**: the Helm chart is now published as an OCI chart, so you can install it with `helm install questarr oci://ghcr.io/doezer/charts/questarr --namespace questarr --create-namespace` instead of from a clone (chart version 0.1.4). The chart is also listed on [Artifact Hub](https://artifacthub.io/packages/search?repo=questarr), and the README has its badge. A version that is already published is never overwritten (#1389). - **Start the container as a non-root user**: the Docker image now starts when the platform runs it as a fixed non-root user, such as TrueNAS Apps, Kubernetes `runAsUser` or `docker run --user`. `PUID` and `PGID` are ignored in that case, and the entrypoint only checks that `/app/data` (and an existing database file) is writable by that user, with a clear error if it is not (Questarr-mgmt#104). - **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). - **Updates and DLC in subfolders**: **Settings → Import** has a new **Updates and DLC in subfolders** switch. When on, a release recognized as an update or DLC is imported into `update/` or `dlc/` inside the game's folder (`//update/`, the layout RomM reads) instead of next to the base game; a single file keeps its name, a second update joins the existing folder without overwriting a file, and the game's own entry in the library does not move. A pack that also contains the base game ("Base Game + Update") stays where it is, and extras and packs are unchanged. Off by default, so imports behave as before; games already imported are not moved (Questarr-mgmt#120). From c5224432b4ee93969e3cb75636ba502f815b5d93 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Thu, 26 Nov 2026 17:08:13 +0000 Subject: [PATCH 31/33] Mention the log scrubbing and report triage in the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c45355a82..3fd599dd3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -30,7 +30,7 @@ All notable changes to this project will be documented in this file. - **Import Steam play time from before tracking**: **Settings → Steam → Steam play time → Preview import** lists, per game, what Steam holds minus what Questarr already recorded, and **Import** records the games you leave ticked as one estimated session each (shown as "Steam · before tracking"). It never runs by itself and imports a game only once (#1398). - **Helm chart on GHCR**: the Helm chart is now published as an OCI chart, so you can install it with `helm install questarr oci://ghcr.io/doezer/charts/questarr --namespace questarr --create-namespace` instead of from a clone (chart version 0.1.4). The chart is also listed on [Artifact Hub](https://artifacthub.io/packages/search?repo=questarr), and the README has its badge. A version that is already published is never overwritten (#1389). - **Start the container as a non-root user**: the Docker image now starts when the platform runs it as a fixed non-root user, such as TrueNAS Apps, Kubernetes `runAsUser` or `docker run --user`. `PUID` and `PGID` are ignored in that case, and the entrypoint only checks that `/app/data` (and an existing database file) is writable by that user, with a clear error if it is not (Questarr-mgmt#104). -- **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). +- **Support diagnostics**: **Send Logs** and the automatic error reports now attach a short, secret-free description of your instance (runtime, database engine, the shape of your indexer and download client settings, a few behaviour switches and a digest of recent errors). It never contains a host name, address, credential, URL path or query string, and logs that embed secrets are redacted more thoroughly (#1354). Shared logs also hide user names and keep only the kind of each IP address (local, private or public), error entries keep their message and stack, and reports are triaged and de-duplicated before they reach the issue tracker (#1442, #1447). - **Updates and DLC in subfolders**: **Settings → Import** has a new **Updates and DLC in subfolders** switch. When on, a release recognized as an update or DLC is imported into `update/` or `dlc/` inside the game's folder (`<platform>/<Title>/update/`, the layout RomM reads) instead of next to the base game; a single file keeps its name, a second update joins the existing folder without overwriting a file, and the game's own entry in the library does not move. A pack that also contains the base game ("Base Game + Update") stays where it is, and extras and packs are unchanged. Off by default, so imports behave as before; games already imported are not moved (Questarr-mgmt#120). - **Fix misplaced RomM folders**: **Settings → Import → RomM → Fix misplaced platform folders** lists games stored in a RomM platform folder that none of their platforms belongs to (for example a Switch 2 game left in `win`) and moves them to the right folder after confirmation, updating the game and its files and asking RomM to rescan. An existing destination is never overwritten (Doezer/Questarr#1393). - **Folder for single-file releases**: **Settings → Import** has a new **Folder for single-file releases** switch. When on, a release that is one file is imported into its own folder named like the game, inside the platform folder, as multi-file releases already are. On by default, including for existing installs; switch it off to keep a single file directly in the platform folder (Doezer/Questarr#1375). From efb610e636203c9b84e269c4330f4de9768c62fc Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sun, 29 Nov 2026 08:08:03 +0000 Subject: [PATCH 32/33] Add the release matching fix to the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index bca8df449..4a89b9c20 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -74,6 +74,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Release matching on titles with accents and short words**: the fallback that matches a release to a game now compares whole words, ignores accents and apostrophe forms, and matches glued release names on whole release words with a guard against sequels, so a short title no longer matches a longer one by accident (#1449, supersedes #1349, thanks to @egamer24). - **Wrong update ticked in the bundle dialog**: updates ticked in the download dialog are now tracked by release instead of list position, so fresh search results arriving while the dialog is open can no longer shift a tick onto a different (even blacklisted) update (Questarr-mgmt#70, #1433). - **Version detection in release names**: the version extraction used by automatic upgrades recognises more repackers and no longer trusts names that cannot be read reliably, so such releases are left alone instead of being taken as an upgrade (Questarr-mgmt#97, #1409). - **Torznab results with an NZB link**: a Torznab result whose link is an `.nzb` file is treated as a usenet download and sent to your usenet client, instead of failing as a torrent (#1233, #1401). From f17f8162eecfed86530b3a95f2711d03272fb4f6 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Sun, 29 Nov 2026 13:08:38 +0000 Subject: [PATCH 33/33] Add the import platform folder and SABnzbd fixes to the 1.7.0 changelog Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DeWB4smkvdVBP2AUUEoNgV --- docs/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 4a89b9c20..6daf9044f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -74,6 +74,8 @@ All notable changes to this project will be documented in this file. ### Fixed +- **Import into the right platform folder**: an import no longer ignores the game's target platform when choosing the platform folder, so a game goes into the folder of the platform it was added for (#1457). +- **SABnzbd single-file jobs**: a SABnzbd job that is a single file is now imported from the correct source path instead of a wrong one (#1456). - **Release matching on titles with accents and short words**: the fallback that matches a release to a game now compares whole words, ignores accents and apostrophe forms, and matches glued release names on whole release words with a guard against sequels, so a short title no longer matches a longer one by accident (#1449, supersedes #1349, thanks to @egamer24). - **Wrong update ticked in the bundle dialog**: updates ticked in the download dialog are now tracked by release instead of list position, so fresh search results arriving while the dialog is open can no longer shift a tick onto a different (even blacklisted) update (Questarr-mgmt#70, #1433). - **Version detection in release names**: the version extraction used by automatic upgrades recognises more repackers and no longer trusts names that cannot be read reliably, so such releases are left alone instead of being taken as an upgrade (Questarr-mgmt#97, #1409).