Fix max line length
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user