Skip to content

Ignore null and malformed Genre entries when reading Plex tracks - #220

Merged
rowkav09 merged 1 commit into
mainfrom
fix-genre-list
Oct 3, 2026
Merged

rowkav09 merged 1 commit into
mainfrom
fix-genre-list

Conversation

@rowkav09

@rowkav09 rowkav09 commented Oct 3, 2026

Copy link
Copy Markdown
Member

A track whose Genre list has a null entry, or a Genre value that is not a list, made libraryTracks throw a raw TypeError and fail the whole page. Now only string tags in a real list are used, so one odd row no longer breaks the sync.

Tests: a fail-first case for both shapes; typecheck for the plex package passes and the full vitest suite passes. Run against a mocked Plex response, not a live server.

A track whose Genre list has a null entry, or a Genre value that is not a
list, made libraryTracks throw a raw TypeError and fail the whole page. Now
only string tags in a real list are used, so one odd row no longer breaks the
sync.
@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rowkav09
rowkav09 merged commit c533a75 into main Oct 3, 2026
9 checks passed
@rowkav09
rowkav09 deleted the fix-genre-list branch October 3, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant