Skip to content

Fix NDVR recording timestamp parsing crashing on numeric epoch values#93

Merged
Sholofly merged 1 commit into
devfrom
fix/ndvr-timestamp-parsing
Apr 25, 2026
Merged

Fix NDVR recording timestamp parsing crashing on numeric epoch values#93
Sholofly merged 1 commit into
devfrom
fix/ndvr-timestamp-parsing

Conversation

@Sholofly
Copy link
Copy Markdown
Owner

The recording detail API returns startTime/endTime as epoch seconds (numbers), but _process_ndvr_state assumed ISO-8601 strings and called .replace() on them, causing an AttributeError. This left duration, show_title, media_type and image unset for recordings.

Add _parse_timestamp helper that handles both numeric epochs and ISO-8601 strings with safe fallback.

The recording detail API returns startTime/endTime as epoch seconds
(numbers), but _process_ndvr_state assumed ISO-8601 strings and called
.replace() on them, causing an AttributeError. This left duration,
show_title, media_type and image unset for recordings.

Add _parse_timestamp helper that handles both numeric epochs and
ISO-8601 strings with safe fallback.
@Sholofly Sholofly merged commit 17fb0b4 into dev Apr 25, 2026
2 checks passed
@Sholofly Sholofly deleted the fix/ndvr-timestamp-parsing branch April 25, 2026 07:07
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