New Buttons (#5)
Added two new buttons to the player: - Favorite song button - Queue mode button Reviewed-on: #5
This commit is contained in:
1 parent
4c6976b2df
commit
0ca2547b54
4 files changed
+102
-2
No files matched your search
@@ -80,3 +80,18 @@ class NavidromeAPI:
|
||||
|
||||
return [SubSonic.Album(album_d) for album_d in response.json()]
|
||||
|
||||
def getSong(self, id: str):
|
||||
url = self.base_url + '/api/song?'
|
||||
|
||||
payload = {
|
||||
"id" : id
|
||||
}
|
||||
|
||||
response = requests.get(url + self._encodePayload(payload), headers=self.auth_header)
|
||||
|
||||
return response.json()
|
||||
|
||||
def isSongStarred(self, id: str) -> bool:
|
||||
info = self.getSong(id)
|
||||
|
||||
return info[0]['starred']
|
||||
Reference in new issue
Block a user