(options: { public?: boolean } = {})
| 415 | } |
| 416 | |
| 417 | toString(options: { public?: boolean } = {}) { |
| 418 | options = { ...{ public: false }, ...options } |
| 419 | |
| 420 | let output = `#EXTINF:-1 tvg-id="${this.getTvgId()}"` |
| 421 | |
| 422 | if (options.public) { |
| 423 | output += ` tvg-logo="${this.getTvgLogo()}"` |
| 424 | |
| 425 | if (this.referrer) { |
| 426 | output += ` http-referrer="${this.referrer}"` |
| 427 | } |
| 428 | |
| 429 | if (this.user_agent) { |
| 430 | output += ` http-user-agent="${this.user_agent}"` |
| 431 | } |
| 432 | |
| 433 | output += ` group-title="${this.groupTitle}"` |
| 434 | } |
| 435 | |
| 436 | output += `,${this.getFullTitle()}` |
| 437 | |
| 438 | if (this.referrer) { |
| 439 | output += `\r\n#EXTVLCOPT:http-referrer=${this.referrer}` |
| 440 | } |
| 441 | |
| 442 | if (this.user_agent) { |
| 443 | output += `\r\n#EXTVLCOPT:http-user-agent=${this.user_agent}` |
| 444 | } |
| 445 | |
| 446 | output += `\r\n${this.url}` |
| 447 | |
| 448 | return output |
| 449 | } |
| 450 | |
| 451 | toObject(): sdk.Types.StreamData { |
| 452 | let feedId = this.feed |
no test coverage detected