mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2025-01-08 15:47:24 +00:00
22 lines
418 B
JavaScript
22 lines
418 B
JavaScript
import { socket } from '@/utils/socket'
|
|
|
|
export function sendAddToQueue(url, bitrate = null) {
|
|
if (!url) throw new Error('No URL given to sendAddToQueue function!')
|
|
|
|
socket.emit('addToQueue', { url, bitrate }, () => {})
|
|
}
|
|
|
|
export function aggregateDownloadLinks(releases) {
|
|
let links = []
|
|
|
|
releases.forEach(release => {
|
|
links.push(release.link)
|
|
})
|
|
|
|
return links.join(';')
|
|
}
|
|
|
|
export default {
|
|
sendAddToQueue
|
|
}
|