2021-06-13 13:01:23 +02:00
|
|
|
function singleItemPlaylist(file,name,basicAuth){
|
|
|
|
let hostUrl = `http://${basicAuth}${window.location.host}`
|
2021-06-12 17:34:26 +02:00
|
|
|
let pd = ""
|
|
|
|
pd += '#EXTM3U\n'
|
|
|
|
pd += `#EXTINF: ${name}\n`
|
|
|
|
pd += `${hostUrl}/${file}\n`
|
|
|
|
let blob = new Blob([pd], { endings: "native" });
|
|
|
|
saveAs(blob, `${name}.m3u`);
|
2021-06-13 13:01:23 +02:00
|
|
|
}
|