Skip to content

fix: treat media times beyond TimeSpan range as unknown - #5

Merged
PyFlat-JR merged 1 commit into
mainfrom
fix/mpris-unbounded-length
Oct 9, 2026
Merged

PyFlat-JR merged 1 commit into
mainfrom
fix/mpris-unbounded-length

Conversation

@PyFlat-JR

@PyFlat-JR PyFlat-JR commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Chromium on Linux reports a stream without a known length (Disney+) as mpris:length 9223372036854775807, far beyond what a TimeSpan holds, so every read threw an OverflowException and flooded the log. A length or position that is negative, not finite or too large now counts as unknown, so the stream shows no duration instead of failing.

The check lives in MediaTime and covers MPRIS, macOS Now Playing and mpv, which converted raw numbers the same way. Windows gets its timeline as TimeSpans already and was not affected.

Reproduced with Disney+ in Chromium on Linux.

Fixes #4

@PyFlat-JR
PyFlat-JR merged commit bc32f7e into main Oct 9, 2026
3 checks passed
@PyFlat-JR
PyFlat-JR deleted the fix/mpris-unbounded-length branch October 9, 2026 08:08
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.

[Bug]: SPAMs the log with 'ERR CapabilityDispatcher' cause of Disney+ (sort-of Critical)

1 participant