plexsonic 0.1.12 → 0.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plexsonic",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "PlexMusic to OpenSubsonic bridge",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
package/src/server.js CHANGED
@@ -716,6 +716,7 @@ function groupArtistsForSubsonic(artists) {
716
716
  name: artist.name,
717
717
  albumCount: artistAlbumCountValue(artist.artist),
718
718
  coverArt: artist.id,
719
+ roles: ['artist'],
719
720
  ...subsonicRatingAttrs(artist.artist),
720
721
  }),
721
722
  );
@@ -263,15 +263,6 @@ function nodeToJson(node) {
263
263
  out[child.name] = value;
264
264
  }
265
265
 
266
- const arrayChildren = ARRAY_CHILDREN_BY_PARENT[node.name];
267
- if (arrayChildren) {
268
- for (const childName of arrayChildren) {
269
- if (!Object.prototype.hasOwnProperty.call(out, childName)) {
270
- out[childName] = [];
271
- }
272
- }
273
- }
274
-
275
266
  const keys = Object.keys(out);
276
267
  if (keys.length === 1 && keys[0] === 'value') {
277
268
  return out.value;