fix(historyimport): make Plex watchlist import actually work

The browser Plex OAuth flow only sent the PMS server access token, which
the discover API rejects (401), so the watchlist step always failed with
a buried warning. The web client now forwards the plex.tv account token
via a new additive plex_account_token field.

The discover watchlist listing also ignores includeGuids, so items
arrived without external ids and could only exact-title/year match.
FetchWatchlist now resolves ids per item from the discover metadata
endpoint, decoding both Metadata- and Video-keyed containers, and
degrades to a title/year fallback warning instead of dropping items.

Part of #245

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Quick
2026-07-05 13:11:12 -04:00
co-authored by Claude Fable 5
parent f7954f226e
commit 9ead29bfcc
9 changed files with 195 additions and 17 deletions
+1
View File
@@ -480,6 +480,7 @@ export interface CreateHistoryImportRunRequest {
plex_server_id?: string;
plex_base_url?: string;
plex_token?: string;
plex_account_token?: string;
}
export interface CreateHistoryImportSourceRequest {