New Buttons (#5)

Added two new buttons to the player:
 - Favorite song button
 - Queue mode button

Reviewed-on: #5
This commit is contained in:
0x01FE committed 2025-11-05 13:16:51 -06:00
1 parent 4c6976b2df
commit 0ca2547b54
4 files changed
+102 -2

No files matched your search

+15
View File
@@ -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']