()
| 49 | } |
| 50 | |
| 51 | toString() { |
| 52 | let output = '#EXTM3U' |
| 53 | |
| 54 | const guideUrls = this.getGuideUrls() |
| 55 | if (guideUrls.count()) { |
| 56 | output += ` x-tvg-url="${guideUrls.join(',')}"` |
| 57 | } |
| 58 | |
| 59 | output += '\r\n' |
| 60 | |
| 61 | this.streams.forEach((stream: Stream) => { |
| 62 | output += stream.toString({ public: this.public }) + '\r\n' |
| 63 | }) |
| 64 | |
| 65 | return output |
| 66 | } |
| 67 | } |
no test coverage detected