@@ -270,7 +270,7 @@ class Plex {
270
270
break ;
271
271
case "movie" :
272
272
// cache movie poster
273
- let movieFileName = md . updatedAt + ".jpg" ;
273
+ let movieFileName = md . ratingKey + ".jpg" ;
274
274
medCard . genre = md . Genre ;
275
275
let moviePlexPrefix = "http://" ;
276
276
if ( this . https ) moviePlexPrefix = "https://" ;
@@ -288,7 +288,7 @@ class Plex {
288
288
//download poster
289
289
// check art exists
290
290
if ( md . art !== undefined && hasArt == "true" ) {
291
- movieFileName = md . updatedAt + "-art.jpg" ;
291
+ movieFileName = md . ratingKey + "-art.jpg" ;
292
292
if ( this . https ) moviePlexPrefix = "https://" ;
293
293
movieUrl =
294
294
moviePlexPrefix +
@@ -310,7 +310,7 @@ class Plex {
310
310
}
311
311
else {
312
312
// download mp3 file to local server
313
- fileName = md . updatedAt + ".mp3" ;
313
+ fileName = md . ratingKey + ".mp3" ;
314
314
prefix = "http://" ;
315
315
if ( this . https ) prefix = "https://" ;
316
316
url =
@@ -615,7 +615,7 @@ class Plex {
615
615
case "movie" :
616
616
// cache movie poster
617
617
// console.log(md);
618
- let movieFileName = md . updatedAt + ".jpg" ;
618
+ let movieFileName = md . ratingKey + ".jpg" ;
619
619
let moviePlexPrefix = "http://" ;
620
620
if ( this . https ) moviePlexPrefix = "https://" ;
621
621
let movieUrl =
@@ -632,7 +632,7 @@ class Plex {
632
632
//download poster
633
633
// check art exists
634
634
if ( md . art !== undefined && hasArt == "true" ) {
635
- movieFileName = md . updatedAt + "-art.jpg" ;
635
+ movieFileName = md . ratingKey + "-art.jpg" ;
636
636
if ( this . https ) moviePlexPrefix = "https://" ;
637
637
movieUrl =
638
638
moviePlexPrefix +
@@ -657,7 +657,7 @@ class Plex {
657
657
}
658
658
else {
659
659
// download mp3 file to local server
660
- themeFile = md . updatedAt + ".mp3" ;
660
+ themeFile = md . ratingKey + ".mp3" ;
661
661
let prefix = "http://" ;
662
662
if ( this . https ) prefix = "https://" ;
663
663
let url =
0 commit comments