Displaying filename while music metadata is being downloaded.

This commit is contained in:
Alberto Miranda
2018-04-19 14:49:17 -03:00
parent afd7f6ef0a
commit c688313239
2 changed files with 6 additions and 1 deletions

View File

@@ -340,6 +340,10 @@ function getAudioMetadata (infoHash, index) {
const torrent = client.get(infoHash)
const file = torrent.files[index]
// Set initial matadata to display the filename first.
const metadata = { title: file.name }
ipc.send('wt-audio-metadata', infoHash, index, metadata)
const options = {native: false, skipCovers: true, fileSize: file.length}
const onMetaData = file.done
// If completed; use direct file access