@deadair/plugin-sdk 0.10.0 → 0.11.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/README.md
CHANGED
|
@@ -686,6 +686,13 @@ ones it implements in `manifest.capabilities`:
|
|
|
686
686
|
size: page internally if your upstream's own ceiling is lower, since a
|
|
687
687
|
short answer is indistinguishable from a genuinely thin search.
|
|
688
688
|
|
|
689
|
+
`listPlaylists` follows the same rule from the other side: never leave a
|
|
690
|
+
playlist out of a page. The host reads a short page as the end of the list,
|
|
691
|
+
so one playlist dropped takes every playlist after it along. Report what you
|
|
692
|
+
know about each one instead (`permissions` for what the source will let the
|
|
693
|
+
account do, `madeByProvider` for a playlist the service made itself, such as
|
|
694
|
+
an editorial list or Discover Weekly) and the host decides what to show.
|
|
695
|
+
|
|
689
696
|
- **`stream`** — `resolveStreamUrl`: hand back a complete URL the audio consumer
|
|
690
697
|
can fetch directly, carrying its own authentication, because it is fetched
|
|
691
698
|
with no headers from us. A provider that cannot answer it plays its own audio
|
|
@@ -126,6 +126,19 @@ export interface ProviderPlaylist {
|
|
|
126
126
|
* API changes only the owned half can be read at all.
|
|
127
127
|
*/
|
|
128
128
|
permissions?: ProviderPlaylistPermission[];
|
|
129
|
+
/**
|
|
130
|
+
* Whether the SERVICE made this playlist itself rather than a person: an
|
|
131
|
+
* editorial list, or one generated for the account like Discover Weekly or a
|
|
132
|
+
* Daily Mix. A console folds these away so a listing full of what the
|
|
133
|
+
* service pushes at the account does not bury what the operator chose.
|
|
134
|
+
*
|
|
135
|
+
* `true` or absent, never `false`: absent means the provider did not say,
|
|
136
|
+
* and most have no such concept. It is a fact about the playlist and never a
|
|
137
|
+
* reason to leave it out of `listPlaylists`, because the host reads a short
|
|
138
|
+
* page as the end of the list and a playlist dropped from one takes every
|
|
139
|
+
* playlist after it with it. Report it and let the host decide.
|
|
140
|
+
*/
|
|
141
|
+
madeByProvider?: boolean;
|
|
129
142
|
}
|
|
130
143
|
/** A playable stream, plus how long the URL stays good for. */
|
|
131
144
|
export interface ProviderStream {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"music.provider.d.ts","sourceRoot":"","sources":["../../src/capabilities/music.provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC1B,sDAAsD;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,qFAAqF;IACrF,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,0BAA0B;AAClC,oDAAoD;AAClD,MAAM;AACR,8DAA8D;GAC5D,MAAM,CAAC;AAEb,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CAAC,EAAE,0BAA0B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"music.provider.d.ts","sourceRoot":"","sources":["../../src/capabilities/music.provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG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