Skip to content

Use internal time in socket based progress updates in Audiobookshelf.#3374

Draft
fmunkes wants to merge 1 commit intodevfrom
abs_progress_update
Draft

Use internal time in socket based progress updates in Audiobookshelf.#3374
fmunkes wants to merge 1 commit intodevfrom
abs_progress_update

Conversation

@fmunkes
Copy link
Contributor

@fmunkes fmunkes commented Mar 12, 2026

Fixes an edge case, where the abs server and ma server are not synced in time. The progress update via socket then occurs a bit unpredictably. Solved by using the internal time.

Also, abs updates every 10s now, so I adjusted the minimum time required to pass between updates.

@OzGav OzGav added this to the 2.8.0 milestone Mar 15, 2026
)
self._progresses.append(progress)

def guard_ok_abs(self, abs_progress: MediaProgress) -> bool:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this now functionally equal to guard_ok_mass?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just return guard_ok_mass(item_id, episode_id) I think

Copy link
Contributor

@MarvinSchenkel MarvinSchenkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 minor nit :)

@MarvinSchenkel MarvinSchenkel marked this pull request as draft March 16, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants