plex-api-oauth
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "plex-api-oauth", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "An NPM Module designed to make Plex Media Server and plex.tv API calls easier to implement in JavaScript and React projects", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -1320,42 +1320,43 @@ import { PlexOauth } from "plex-oauth"; | ||
for (const hubAlbum of relatedArtistHub) { | ||
const album = hubAlbum.Metadata; | ||
relatedArtists.push({ | ||
server: server.clientIdentifier, | ||
library: musicLibrary.uuid, | ||
Director: album.Director, | ||
Genre: album.Genre, | ||
addedAt: album.addedAt, | ||
guid: album.guid, | ||
index: album.index, | ||
key: album.key, | ||
lastViewedAt: album.lastViewedAt, | ||
loudnessAnalysisVersion: album.loudnessAnalysisVersion, | ||
musicAnalysisVersion: album.musicAnalysisVersion, | ||
originallyAvailableAt: album.originallyAvailableAt, | ||
parentGuid: album.parentGuid, | ||
parentKey: album.parentKey, | ||
parentRatingKey: album.parentRatingKey, | ||
parentThumb: album.parentThumb, | ||
parentTitle: album.parentTitle, | ||
rating: album.rating, | ||
ratingKey: album.ratingKey, | ||
studio: album.studio, | ||
summary: album.summary, | ||
thumb: | ||
server.preferredConnection.uri + | ||
"/photo/:/transcode?" + | ||
qs.stringify({ | ||
width: 240, | ||
height: 240, | ||
minSize: 1, | ||
upscale: 1, | ||
url: album.thumb + "?X-Plex-Token=" + server.accessToken, | ||
"X-Plex-Token": server.accessToken, | ||
}), | ||
title: album.title, | ||
type: album.type, | ||
updatedAt: album.updatedAt, | ||
viewCount: album.viewCount, | ||
year: album.year, | ||
}); | ||
for (const album of hubAlbum.Metadata) { | ||
relatedArtists.push({ | ||
server: server.clientIdentifier, | ||
library: musicLibrary.uuid, | ||
Director: album.Director, | ||
Genre: album.Genre, | ||
addedAt: album.addedAt, | ||
guid: album.guid, | ||
index: album.index, | ||
key: album.key, | ||
lastViewedAt: album.lastViewedAt, | ||
loudnessAnalysisVersion: album.loudnessAnalysisVersion, | ||
musicAnalysisVersion: album.musicAnalysisVersion, | ||
originallyAvailableAt: album.originallyAvailableAt, | ||
parentGuid: album.parentGuid, | ||
parentKey: album.parentKey, | ||
parentRatingKey: album.parentRatingKey, | ||
parentThumb: album.parentThumb, | ||
parentTitle: album.parentTitle, | ||
rating: album.rating, | ||
ratingKey: album.ratingKey, | ||
studio: album.studio, | ||
summary: album.summary, | ||
thumb: | ||
server.preferredConnection.uri + | ||
"/photo/:/transcode?" + | ||
qs.stringify({ | ||
width: 240, | ||
height: 240, | ||
minSize: 1, | ||
upscale: 1, | ||
url: album.thumb + "?X-Plex-Token=" + server.accessToken, | ||
"X-Plex-Token": server.accessToken, | ||
}), | ||
title: album.title, | ||
type: album.type, | ||
updatedAt: album.updatedAt, | ||
viewCount: album.viewCount, | ||
year: album.year, | ||
}); | ||
} | ||
} | ||
@@ -1362,0 +1363,0 @@ } |
54045
1592