From ddedd67b8043c5150172f53f0120648b4bcc739c Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 23 Apr 2025 05:21:33 +0300 Subject: [PATCH] Update scripts --- scripts/models/playlist.ts | 4 ++-- scripts/models/stream.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/models/playlist.ts b/scripts/models/playlist.ts index ba0a25c5c..d3022a5af 100644 --- a/scripts/models/playlist.ts +++ b/scripts/models/playlist.ts @@ -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 diff --git a/scripts/models/stream.ts b/scripts/models/stream.ts index 2de399efc..443a249b9 100644 --- a/scripts/models/stream.ts +++ b/scripts/models/stream.ts @@ -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 }