Fix max line length

This commit is contained in:
Borewit
2017-09-17 22:24:16 +02:00
parent 52e16c33b4
commit c11a86d849

View File

@@ -340,12 +340,14 @@ console.log('Initializing...')
function getAudioMetadata (infoHash, index) { function getAudioMetadata (infoHash, index) {
const torrent = client.get(infoHash) const torrent = client.get(infoHash)
const file = torrent.files[index] const file = torrent.files[index]
mm.parseStream(file.createReadStream(), mime.getType(file.name), {native: false, skipCovers: true}).then(function (metadata) { mm.parseStream(file.createReadStream(), mime.getType(file.name),
console.log('got audio metadata for %s: %o', file.name, metadata) {native: false, skipCovers: true})
ipc.send('wt-audio-metadata', infoHash, index, metadata) .then(function (metadata) {
}).catch(function (err) { console.log('got audio metadata for %s: %o', file.name, metadata)
return console.log('error getting audio metadata for ' + infoHash + ':' + index, err) ipc.send('wt-audio-metadata', infoHash, index, metadata)
}) }).catch(function (err) {
return console.log('error getting audio metadata for ' + infoHash + ':' + index, err)
})
} }
function selectFiles (torrentOrInfoHash, selections) { function selectFiles (torrentOrInfoHash, selections) {