diff --git a/classes/mediaservers/plex.js b/classes/mediaservers/plex.js index faf7b4e..7f8bbe9 100644 --- a/classes/mediaservers/plex.js +++ b/classes/mediaservers/plex.js @@ -106,15 +106,25 @@ class Plex { medCard.DBID = result[2]; // download poster image to local server - fileName = result[3] + ".jpg"; + let guid = md.key.split("/")[3]; + fileName = guid + result[3] + ".jpg"; prefix = "http://"; if (this.https) prefix = "https://"; + let thumb = ""; + + thumb = guid; + if(md.parentThumb){ + thumb = md.parentThumb; + } + else{ + thumb = md.grandparentThumb; + } url = prefix + this.plexIP + ":" + this.plexPort + - md.parentThumb + + thumb + "?X-Plex-Token=" + this.plexToken; await core.CacheImage(url, fileName); @@ -123,7 +133,7 @@ class Plex { // download artist art image to local server // check art exists if (md.grandparentArt !== undefined && hasArt == "true") { - fileName = result[3] + "-art.jpg"; + fileName = guid + result[3] + "-art.jpg"; prefix = "http://"; if (this.https) prefix = "https://"; url = diff --git a/index.js b/index.js index 4110bf4..08cce13 100644 --- a/index.js +++ b/index.js @@ -372,7 +372,7 @@ async function loadRadarrComingSoon() { // Temporarily do the radarr trailer call //let mt = new movieTrailers() -// rtCards = await mt.AssembleRadarrTrailers(csrCards,"xxx") +// rtCards = await mt.AssembleRadarrTrailers(csrCards,"xx") return csrCards; } diff --git a/package.json b/package.json index 60f4621..95f8d22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "posterr", - "version": "1.17.11", + "version": "1.17.12", "description": "A digital display for your media", "main": "index.js", "bin": "index.js",