Compare commits

..

2 Commits

Author SHA1 Message Date
Uyanide c8ccf31583 feat: log blacklisted player 2026-04-10 15:45:07 +02:00
Uyanide 6e971941f8 chore: 0.7.7 2026-04-10 15:45:07 +02:00
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "lrx-cli" name = "lrx-cli"
version = "0.7.6" version = "0.7.8"
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"
+6 -5
View File
@@ -103,11 +103,12 @@ async def _select_player(
return matched[0] if matched else None return matched[0] if matched else None
# auto-selection: apply blacklist before choosing # auto-selection: apply blacklist before choosing
candidates = [ candidates = []
p for p in all_names:
for p in all_names if any(x.lower() in p.lower() for x in player_blacklist):
if not any(x.lower() in p.lower() for x in player_blacklist) logger.info(f"Excluding blacklisted player: {p}")
] else:
candidates.append(p)
playing: list[str] = [] playing: list[str] = []
for p in candidates: for p in candidates:
status = await _get_playback_status(bus, p) status = await _get_playback_status(bus, p)
+1
View File
@@ -178,6 +178,7 @@ class PlayerMonitor:
if not hint_active and any( if not hint_active and any(
x.lower() in name.lower() for x in self._player_blacklist x.lower() in name.lower() for x in self._player_blacklist
): ):
logger.info(f"Excluding blacklisted player: {name}")
continue continue
if not self._target.allows(name): if not self._target.allows(name):
continue continue
Generated
+1 -1
View File
@@ -153,7 +153,7 @@ wheels = [
[[package]] [[package]]
name = "lrx-cli" name = "lrx-cli"
version = "0.7.6" version = "0.7.8"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "cyclopts" }, { name = "cyclopts" },