mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
Reduce timeout to expire Sonos resource cache (#500)
This commit is contained in:
parent
4193012bc2
commit
4a24d50036
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ class MyPlexAccount(PlexObject):
|
|||
return []
|
||||
|
||||
t = time.time()
|
||||
if t - self._sonos_cache_timestamp > 60:
|
||||
if t - self._sonos_cache_timestamp > 5:
|
||||
self._sonos_cache_timestamp = t
|
||||
data = self.query('https://sonos.plex.tv/resources')
|
||||
self._sonos_cache = [PlexSonosClient(self, elem) for elem in data]
|
||||
|
|
Loading…
Reference in a new issue