@deadair/sdk 0.17.1 → 0.19.0
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
|
@@ -2129,6 +2129,24 @@ var PlaylistsClient = class {
|
|
|
2129
2129
|
method: "DELETE"
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
|
+
/**
|
|
2133
|
+
* @name Refresh playlists
|
|
2134
|
+
* @description Reads every playlist on every music source again, in the background, rather than waiting for the next scheduled read. New records reach the library; records gone from every playlist are retired
|
|
2135
|
+
*/
|
|
2136
|
+
async refreshPlaylists() {
|
|
2137
|
+
await this.fetch(`/playlists/refresh`, {
|
|
2138
|
+
method: "POST"
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* @name Refresh playlist
|
|
2143
|
+
* @description Reads one playlist again, in the background. New records reach the library; a record taken out of it stays until the next full read judges it
|
|
2144
|
+
*/
|
|
2145
|
+
async refreshPlaylist(pluginId, playlistId) {
|
|
2146
|
+
await this.fetch(`/playlists/${encodeURIComponent(pluginId)}/${encodeURIComponent(playlistId)}/refresh`, {
|
|
2147
|
+
method: "POST"
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2132
2150
|
};
|
|
2133
2151
|
|
|
2134
2152
|
// src/playout/playout.client.ts
|