github ZL154/AchievementBadges_for_Jellyfin v1.9.2
v1.9.2 — Fix admin Classic + last-watched accuracy

latest releases: v2.4.0, v2.3.1, v2.3.0...
4 months ago

Two bug fixes on top of v1.9.1.

Admin Classic toggle was broken

body[data-ab-style="revamp"] set during a /achievements Revamp visit persisted globally. When the user toggled Classic on the admin page, only #AchievementBadgesPage's attribute was cleared — body still carried data-ab-style="revamp" from before. Revamp CSS scoped to ancestor selectors kept matching via the body, hiding the badge grid and leaving Classic visually broken.

Admin's applyPref() now syncs body[data-ab-style] alongside the page-scoped attribute, matching what standalone's applyStylePref() already does. Toggling Classic on admin now actually clears Revamp styling.

Friends drawer last-watched was inaccurate

ComputeLastWatched queried InternalItemsQuery with Limit = 50 and no OrderBy. Without ordering, we got 50 arbitrary played items (Jellyfin's default, not by date), then sorted those 50 in C# via _userDataManager.LastPlayedDate. For users with thousands of plays, "most recent of arbitrary 50" was very rarely the actually-most-recent item.

Bumped Limit from 50 to 500. With the existing 90s LastWatched cache (one call per friend per 90 seconds), the higher limit costs nothing observable in practice.

Don't miss a new AchievementBadges_for_Jellyfin release

NewReleases is sending notifications on new releases.