fix: watch pipe skips refetch after resume from pause
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "lrx-cli"
|
name = "lrx-cli"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
description = "Fetch line-synced lyrics for your music player."
|
description = "Fetch line-synced lyrics for your music player."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|||||||
@@ -292,6 +292,12 @@ class WatchCoordinator:
|
|||||||
started_fetch = False
|
started_fetch = False
|
||||||
if track is not None and (player_changed or track_changed):
|
if track is not None and (player_changed or track_changed):
|
||||||
started_fetch = self._request_fetch_for_active_track("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:
|
if self._model.lyrics is not None:
|
||||||
self._model.status = "ok"
|
self._model.status = "ok"
|
||||||
|
|||||||
Reference in New Issue
Block a user