minor fixes/changes
This commit is contained in:
1 parent
252f15ffd9
commit
336519be70
8 files changed
+41
-10
No files matched your search
@@ -512,9 +512,9 @@ async function refrechEntry(entryId) {
|
||||
|
||||
// ? if the count of a media type == 0, the add the type to mediaToGet
|
||||
let mediaToGet = [];
|
||||
availableMedia.forEach(({ type, count }) => {
|
||||
if (count == 0) mediaToGet.push(type);
|
||||
});
|
||||
for (let key in availableMedia) {
|
||||
if (availableMedia[key] == 0) mediaToGet.push(availableMedia[key]);
|
||||
}
|
||||
|
||||
if (mediaToGet.length != 0) {
|
||||
downloadedImages = await getEntryMedia(data.id, oldEntry.is_tvseries, mediaToGet);
|
||||
|
||||
Reference in new issue
Block a user