Skip to content

Commit

Permalink
Merge pull request #5 from waylyrics/patch-1
Browse files Browse the repository at this point in the history
fix: do not send proprietiesChanged signal for position
  • Loading branch information
BruceZhang1993 authored Jan 9, 2024
2 parents 2562455 + 9f42d33 commit d845fe9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aionowplaying/interface/mpris2.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __init__(self, bus_name: str, it: 'Mpris2Interface' = None):

def set_property(self, name: str, value: Any):
setattr(self._properties, name, value)
if name == PlaybackPropertyName.Position:
return
if isinstance(value, PlaybackProperties.MetadataBean):
value = DBusBeanMapper.metadata(value)
self.emit_properties_changed({name: value})
Expand Down

0 comments on commit d845fe9

Please sign in to comment.