Fix max line length
This commit is contained in:
@@ -340,7 +340,9 @@ 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),
|
||||||
|
{native: false, skipCovers: true})
|
||||||
|
.then(function (metadata) {
|
||||||
console.log('got audio metadata for %s: %o', file.name, metadata)
|
console.log('got audio metadata for %s: %o', file.name, metadata)
|
||||||
ipc.send('wt-audio-metadata', infoHash, index, metadata)
|
ipc.send('wt-audio-metadata', infoHash, index, metadata)
|
||||||
}).catch(function (err) {
|
}).catch(function (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user