Skip to content

Commit

Permalink
[automaticvolumeadjustment] remove check ref.valid()
Browse files Browse the repository at this point in the history
-this need for iptv  services
  • Loading branch information
Dima73 authored and littlesat committed Aug 11, 2024
1 parent e053660 commit 237e866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automaticvolumeadjustment/src/AutomaticVolumeAdjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __evEnd(self):
else: # Remember channel volume mode
# save current volume in dict, but for valid ref only
ref = self.newService[1]
if ref and ref.valid():
if ref:
self.serviceList[ref.toString()] = self.volctrl.getVolume()
self.newService = [False, None]

Expand Down Expand Up @@ -134,7 +134,7 @@ def __evUpdatedInfo(self):
else: # modus = Remember channel volume
if self.pluginStarted:
ref = self.getPlayingServiceReference()
if ref and ref.valid():
if ref:
# get value from dict
lastvol = self.serviceList.get(ref.toString(), -1)
if lastvol != -1 and lastvol != self.volctrl.getVolume():
Expand Down

0 comments on commit 237e866

Please sign in to comment.