TelegramIndex-Fork/app/templates/js/playlist.js

10 lines
304 B
JavaScript
Raw Normal View History

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`);
}