[PR #11351] fix: fix off-by-one error in GetAttributeValue #12853

Closed
opened 2026-02-07 07:02:55 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/11351

State: closed
Merged: Yes


Changes
The GetAttributeValue extension will currently fail with ids in the single digit, because it's using a length in a place where it should be an index.

@fearnlj01 helped me debug an issue with a copy of this extension used in the Shokofin plugin, where it failed to recognize single digit ids, which in turn has lead to this PR to fix it upstream.

Issues
-

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/11351 **State:** closed **Merged:** Yes --- **Changes** The `GetAttributeValue` extension will currently fail with ids in the single digit, because it's using a length in a place where it should be an index. @fearnlj01 helped me debug an issue with a copy of this extension used in the Shokofin plugin, where it failed to recognize single digit ids, which in turn has lead to this PR to fix it upstream. **Issues** \-
OVERLORD added the pull-request label 2026-02-07 07:02:55 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12853