Fix issue #1833, only pass metadata. Prevent MetadataCollector (from music-metadata) is serialized.
This commit is contained in:
@@ -343,7 +343,10 @@ function getAudioMetadata (infoHash, index) {
|
||||
skipCovers: true,
|
||||
fileSize: file.length,
|
||||
observer: event => {
|
||||
ipc.send('wt-audio-metadata', infoHash, index, event.metadata)
|
||||
ipc.send('wt-audio-metadata', infoHash, index, {
|
||||
common: metadata.common,
|
||||
format: metadata.format
|
||||
})
|
||||
}
|
||||
}
|
||||
const onMetadata = file.done
|
||||
|
||||
Reference in New Issue
Block a user