mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
16 lines
292 B
TypeScript
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}`
|
|
);
|
|
};
|