@deadair/sdk 0.25.2 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3595,6 +3595,26 @@ var StreamClient = class {
3595
3595
  }
3596
3596
  };
3597
3597
  }
3598
+ /**
3599
+ * @name Get tune-in pls
3600
+ * @description The station's streams as a PLS playlist, MP3 first, for a player that takes a playlist file rather than a stream address
3601
+ */
3602
+ async getTuneInPls() {
3603
+ const result = await this.fetch(`/listen.pls`, {
3604
+ method: "GET"
3605
+ });
3606
+ return await result.blob();
3607
+ }
3608
+ /**
3609
+ * @name Get tune-in m3u
3610
+ * @description The station's streams as an M3U playlist, MP3 first, for a player that takes a playlist file rather than a stream address
3611
+ */
3612
+ async getTuneInM3u() {
3613
+ const result = await this.fetch(`/listen.m3u`, {
3614
+ method: "GET"
3615
+ });
3616
+ return await result.blob();
3617
+ }
3598
3618
  /**
3599
3619
  * @name Read fetcher authorization
3600
3620
  * @description What the track fetcher holds by way of a Spotify login, and whether an authorization is already waiting to be finished