fix: watch pipe skips refetch after resume from pause

This commit is contained in:
2026-04-09 23:54:55 +02:00
parent b7e539de3b
commit 1c160d5ccb
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "lrx-cli"
version = "0.7.1"
version = "0.7.2"
description = "Fetch line-synced lyrics for your music player."
readme = "README.md"
requires-python = ">=3.13"
+6
View File
@@ -292,6 +292,12 @@ class WatchCoordinator:
started_fetch = False
if track is not None and (player_changed or track_changed):
started_fetch = self._request_fetch_for_active_track("track-changed")
elif (
track is not None
and self._model.lyrics is None
and self._model.status == "paused"
):
started_fetch = self._request_fetch_for_active_track("resume-playing")
if self._model.lyrics is not None:
self._model.status = "ok"
Generated
+1 -1
View File
@@ -153,7 +153,7 @@ wheels = [
[[package]]
name = "lrx-cli"
version = "0.7.1"
version = "0.7.2"
source = { editable = "." }
dependencies = [
{ name = "cyclopts" },