Compare commits
1 Commits
renovate_n
...
update-to-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
451212c7ae |
1374
package-lock.json
generated
1374
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -21,7 +21,7 @@
|
|||||||
"url": "https://github.com/webtorrent/webtorrent-desktop/issues"
|
"url": "https://github.com/webtorrent/webtorrent-desktop/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron/remote": "2.1.3",
|
"@electron/remote": "2.1.2",
|
||||||
"airplayer": "github:webtorrent/airplayer#fix-security",
|
"airplayer": "github:webtorrent/airplayer#fix-security",
|
||||||
"application-config": "2.0.0",
|
"application-config": "2.0.0",
|
||||||
"arch": "2.2.0",
|
"arch": "2.2.0",
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
"languagedetect": "2.0.0",
|
"languagedetect": "2.0.0",
|
||||||
"location-history": "1.1.2",
|
"location-history": "1.1.2",
|
||||||
"material-ui": "0.20.2",
|
"material-ui": "0.20.2",
|
||||||
"music-metadata": "7.14.0",
|
"music-metadata": "^10.3.0",
|
||||||
"network-address": "1.1.2",
|
"network-address": "1.1.2",
|
||||||
"parse-torrent": "9.1.5",
|
"parse-torrent": "9.1.5",
|
||||||
"prettier-bytes": "1.0.4",
|
"prettier-bytes": "1.0.4",
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
"rimraf": "4.4.0",
|
"rimraf": "4.4.0",
|
||||||
"run-parallel": "1.2.0",
|
"run-parallel": "1.2.0",
|
||||||
"semver": "7.5.2",
|
"semver": "7.3.8",
|
||||||
"simple-concat": "1.0.1",
|
"simple-concat": "1.0.1",
|
||||||
"simple-get": "4.0.1",
|
"simple-get": "4.0.1",
|
||||||
"srt-to-vtt": "1.1.3",
|
"srt-to-vtt": "1.1.3",
|
||||||
@@ -58,10 +58,10 @@
|
|||||||
"winreg": "1.2.4"
|
"winreg": "1.2.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.28.6",
|
"@babel/cli": "7.24.8",
|
||||||
"@babel/core": "7.29.0",
|
"@babel/core": "7.25.2",
|
||||||
"@babel/eslint-parser": "7.28.6",
|
"@babel/eslint-parser": "7.25.1",
|
||||||
"@babel/plugin-transform-react-jsx": "7.28.6",
|
"@babel/plugin-transform-react-jsx": "7.25.2",
|
||||||
"cross-zip": "4.0.0",
|
"cross-zip": "4.0.0",
|
||||||
"depcheck": "1.4.7",
|
"depcheck": "1.4.7",
|
||||||
"electron": "27.3.11",
|
"electron": "27.3.11",
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
"run-series": "1.1.9",
|
"run-series": "1.1.9",
|
||||||
"spectron": "19.0.0",
|
"spectron": "19.0.0",
|
||||||
"standard": "17.0.0",
|
"standard": "17.0.0",
|
||||||
"tape": "5.9.0"
|
"tape": "5.8.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.0.0 || ^18.0.0",
|
"node": "^16.0.0 || ^18.0.0",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ const crypto = require('crypto')
|
|||||||
const util = require('util')
|
const util = require('util')
|
||||||
const { ipcRenderer } = require('electron')
|
const { ipcRenderer } = require('electron')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const mm = require('music-metadata')
|
const { loadMusicMetadata } = require('music-metadata')
|
||||||
const networkAddress = require('network-address')
|
const networkAddress = require('network-address')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const WebTorrent = require('webtorrent')
|
const WebTorrent = require('webtorrent')
|
||||||
@@ -345,25 +345,23 @@ function getAudioMetadata (infoHash, index) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onMetadata = file.done
|
|
||||||
// If completed; use direct file access
|
|
||||||
? mm.parseFile(path.join(torrent.path, file.path), options)
|
|
||||||
// otherwise stream
|
|
||||||
: mm.parseStream(file.createReadStream(), file.name, options)
|
|
||||||
|
|
||||||
onMetadata
|
loadMusicMetadata(mm => {
|
||||||
.then(
|
return file.done
|
||||||
metadata => {
|
// If completed; use direct file access
|
||||||
ipcRenderer.send('wt-audio-metadata', infoHash, index, metadata)
|
? mm.parseFile(path.join(torrent.path, file.path), options)
|
||||||
console.log(`metadata for file='${file.name}' completed.`)
|
// otherwise stream
|
||||||
},
|
: mm.parseStream(file.createReadStream(), file.name, options)
|
||||||
err => {
|
}).then(metadata => {
|
||||||
console.log(
|
ipcRenderer.send('wt-audio-metadata', infoHash, index, metadata)
|
||||||
`error getting audio metadata for ${infoHash}:${index}`,
|
console.log(`metadata for file='${file.name}' completed.`)
|
||||||
err
|
},
|
||||||
)
|
err => {
|
||||||
}
|
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