updated audio thumbnail and library sync
This commit is contained in:
+2
-1
@@ -118,7 +118,7 @@ export async function syncLibraryCache(servers: LibrarySyncServer[], options: {
|
||||
|
||||
const [tagMap, mediaInfoMap] = await Promise.all([
|
||||
client.getFilesTags(ids, 8),
|
||||
section.id === 'application' ? client.getFilesMediaInfo(ids, 6) : Promise.resolve({} as Record<number, { mimeType?: string; isVideo?: boolean }>),
|
||||
client.getFilesMediaInfo(ids, 6),
|
||||
])
|
||||
|
||||
for (const fileId of ids) {
|
||||
@@ -138,6 +138,7 @@ export async function syncLibraryCache(servers: LibrarySyncServer[], options: {
|
||||
tags: tags.length ? tags : undefined,
|
||||
url: client.getFileUrl(fileId),
|
||||
thumbnail: client.getThumbnailUrl(fileId),
|
||||
hasThumbnail: mediaInfoMap[fileId]?.hasThumbnail,
|
||||
mimeType: mediaInfoMap[fileId]?.mimeType,
|
||||
isVideo: mediaInfoMap[fileId]?.isVideo ?? (section.id === 'video' ? true : undefined),
|
||||
mediaKind: section.id,
|
||||
|
||||
Reference in New Issue
Block a user