Skip to content

Commit 0e2616a

Browse files
author
Matthew Petersen
committed
bugfix for some on-demand images not downloading
1 parent 82677e2 commit 0e2616a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

classes/mediaservers/plex.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class Plex {
270270
break;
271271
case "movie":
272272
// cache movie poster
273-
let movieFileName = md.updatedAt + ".jpg";
273+
let movieFileName = md.ratingKey + ".jpg";
274274
medCard.genre = md.Genre;
275275
let moviePlexPrefix = "http://";
276276
if (this.https) moviePlexPrefix = "https://";
@@ -288,7 +288,7 @@ class Plex {
288288
//download poster
289289
// check art exists
290290
if (md.art !== undefined && hasArt == "true") {
291-
movieFileName = md.updatedAt + "-art.jpg";
291+
movieFileName = md.ratingKey + "-art.jpg";
292292
if (this.https) moviePlexPrefix = "https://";
293293
movieUrl =
294294
moviePlexPrefix +
@@ -310,7 +310,7 @@ class Plex {
310310
}
311311
else{
312312
// download mp3 file to local server
313-
fileName = md.updatedAt + ".mp3";
313+
fileName = md.ratingKey + ".mp3";
314314
prefix = "http://";
315315
if (this.https) prefix = "https://";
316316
url =
@@ -615,7 +615,7 @@ class Plex {
615615
case "movie":
616616
// cache movie poster
617617
// console.log(md);
618-
let movieFileName = md.updatedAt + ".jpg";
618+
let movieFileName = md.ratingKey + ".jpg";
619619
let moviePlexPrefix = "http://";
620620
if (this.https) moviePlexPrefix = "https://";
621621
let movieUrl =
@@ -632,7 +632,7 @@ class Plex {
632632
//download poster
633633
// check art exists
634634
if (md.art !== undefined && hasArt == "true") {
635-
movieFileName = md.updatedAt + "-art.jpg";
635+
movieFileName = md.ratingKey + "-art.jpg";
636636
if (this.https) moviePlexPrefix = "https://";
637637
movieUrl =
638638
moviePlexPrefix +
@@ -657,7 +657,7 @@ class Plex {
657657
}
658658
else{
659659
// download mp3 file to local server
660-
themeFile = md.updatedAt + ".mp3";
660+
themeFile = md.ratingKey + ".mp3";
661661
let prefix = "http://";
662662
if (this.https) prefix = "https://";
663663
let url =

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posterr",
3-
"version": "1.14.1",
3+
"version": "1.14.2",
44
"description": "A digital display for your media",
55
"main": "index.js",
66
"bin": "index.js",

0 commit comments

Comments
 (0)