1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/scripts/fileDownloader.js
Maxr1998 7adc288ca6
Improve NativeShell integration
- Move NativeShell calls into shell.js where possible to better group them
- Add "updateVolumeLevel" API (not used yet)
2020-10-08 18:42:21 +02:00

10 lines
245 B
JavaScript

import multiDownload from 'multi-download';
import shell from 'shell';
export function download(items) {
if (!shell.downloadFiles(items)) {
multiDownload(items.map(function (item) {
return item.url;
}));
}
}