mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 02:16:47 -05:00
Update scripts
This commit is contained in:
@@ -17,10 +17,10 @@ export class Playlist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toString() {
|
toString() {
|
||||||
let output = '#EXTM3U\n'
|
let output = '#EXTM3U\r\n'
|
||||||
|
|
||||||
this.streams.forEach((stream: Stream) => {
|
this.streams.forEach((stream: Stream) => {
|
||||||
output += stream.toString(this.options) + '\n'
|
output += stream.toString(this.options) + '\r\n'
|
||||||
})
|
})
|
||||||
|
|
||||||
return output
|
return output
|
||||||
|
|||||||
@@ -352,14 +352,14 @@ export class Stream {
|
|||||||
output += `,${this.getTitle()}`
|
output += `,${this.getTitle()}`
|
||||||
|
|
||||||
if (this.referrer) {
|
if (this.referrer) {
|
||||||
output += `\n#EXTVLCOPT:http-referrer=${this.referrer}`
|
output += `\r\n#EXTVLCOPT:http-referrer=${this.referrer}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.userAgent) {
|
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
|
return output
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user