Files
feishin/src/renderer/utils/subsonic.ts
T
2022-10-26 16:13:32 -07:00

16 lines
292 B
TypeScript

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=Feishin_${deviceId}`
);
};