Update scripts

remotes/origin/Carlinhos027-patch-1
freearhey 4 months ago
parent 387137c56d
commit 7bca63d8ae

@ -17,10 +17,10 @@ export class Playlist {
}
toString() {
let output = '#EXTM3U\n'
let output = '#EXTM3U\r\n'
this.streams.forEach((stream: Stream) => {
output += stream.toString(this.options) + '\n'
output += stream.toString(this.options) + '\r\n'
})
return output

@ -352,14 +352,14 @@ export class Stream {
output += `,${this.getTitle()}`
if (this.referrer) {
output += `\n#EXTVLCOPT:http-referrer=${this.referrer}`
output += `\r\n#EXTVLCOPT:http-referrer=${this.referrer}`
}
if (this.userAgent) {
output += `\n#EXTVLCOPT:http-user-agent=${this.userAgent}`
output += `\r\n#EXTVLCOPT:http-user-agent=${this.userAgent}`
}
output += `\n${this.url}`
output += `\r\n${this.url}`
return output
}

Loading…
Cancel
Save