mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-18 01:14:22 +02:00
Update utils
This commit is contained in:
@@ -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}`
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user