Update utils

This commit is contained in:
jeffvli
2022-10-24 22:09:58 -07:00
parent 663b951cd7
commit 921c688c94
11 changed files with 68 additions and 17 deletions
+15
View File
@@ -0,0 +1,15 @@
import { Song } from '@/renderer/api/types';
export const getSubsonicStreamUrl = (
auth: any,
song: Song,
deviceId: string
) => {
return (
`${auth.url}/rest/stream.view` +
`?id=${song.remoteId}` +
`&${auth.token}` +
`&v=1.13.0` +
`&c=sonixd_${deviceId}`
);
};