Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Spotifyd instead of vollibrespot to get latest librespot changes #366

Merged
merged 16 commits into from
Nov 3, 2022
Prev Previous commit
Next Next commit
Remove unused dict
  • Loading branch information
linknum23 committed Nov 3, 2022
commit a1473632a74eea32842f728be8e173bdf54f6ba7
10 changes: 2 additions & 8 deletions amplipi/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,7 @@ def __init__(self, name, mock=False):
self.connect_port = None
self.mpris = None
self.proc_pid = None

self.supported_cmds = {
'play': [0x05],
'pause': [0x04],
'next': [0x07],
'prev': [0x08]
}
self.supported_cmds = ['play', 'pause', 'next', 'prev']

def reconfig(self, **kwargs):
reconnect_needed = False
Expand Down Expand Up @@ -315,7 +309,7 @@ def info(self) -> models.SourceInfo:
source.artist = md.artist
source.track = md.title
source.album = md.album
source.supported_cmds=list(self.supported_cmds.keys())
source.supported_cmds=self.supported_cmds
if md.art_url:
source.img_url = md.art_url

Expand Down