MCPcopy
hub / github.com/iptv-org/iptv / toString

Method toString

scripts/models/playlist.ts:51–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers 15

removeBrokenLinksFunction · 0.95
saveStreamsFunction · 0.95
saveFunction · 0.95
mainFunction · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95
generateMethod · 0.95

Calls 1

getGuideUrlsMethod · 0.95

Tested by

no test coverage detected