update
parent
995a967312
commit
ea229c0a38
|
@ -39,7 +39,8 @@
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"node_modules/iofs/*",
|
"node_modules/iofs/*",
|
||||||
"node_modules/sqlite3/*",
|
"node_modules/sqlite3/*",
|
||||||
"node_modules/crypto.js/*"
|
"node_modules/crypto.js/*",
|
||||||
|
"node_modules/music-metadata/*"
|
||||||
],
|
],
|
||||||
"mac": {
|
"mac": {
|
||||||
"category": "public.app-category.music",
|
"category": "public.app-category.music",
|
||||||
|
|
|
@ -52,7 +52,7 @@ Anot({
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
var list = app.dispatch('get-all-songs')
|
var list = app.dispatch('get-all-songs')
|
||||||
// var list = app.dispatch('scan-dir', { dir: '/Volumes/extends/music' })
|
// var list = app.dispatch('scan-dir', { dir: '/Volumes/ooc/music' })
|
||||||
|
|
||||||
kb.on(['left'], ev => {
|
kb.on(['left'], ev => {
|
||||||
var time = this.song.time - 5
|
var time = this.song.time - 5
|
||||||
|
@ -85,19 +85,21 @@ Anot({
|
||||||
|
|
||||||
// for (let it of list) {
|
// for (let it of list) {
|
||||||
// let { album, artist, title, duration } = await this.getID3(it.file_path)
|
// let { album, artist, title, duration } = await this.getID3(it.file_path)
|
||||||
|
|
||||||
// it.name = title || it.name
|
// it.name = title || it.name
|
||||||
// it.artist = artist
|
// it.artist = artist
|
||||||
// it.album = album
|
// it.album = album
|
||||||
// it.duration = duration
|
// it.duration = duration
|
||||||
|
|
||||||
// app.dispatch('add-song', {
|
// app.dispatch('add-song', {
|
||||||
// name: it.name,
|
// name: it.name,
|
||||||
// artist,
|
// artist,
|
||||||
// album,
|
// album,
|
||||||
// duration,
|
// duration,
|
||||||
// file_path: it.path
|
// file_path: it.file_path
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
// console.log(list)
|
||||||
this.list = list
|
this.list = list
|
||||||
|
|
||||||
player.volume = this.volume / 100
|
player.volume = this.volume / 100
|
||||||
|
|
|
@ -38,7 +38,7 @@ exports.createMainWindow = function(icon) {
|
||||||
|
|
||||||
win.on('ready-to-show', _ => {
|
win.on('ready-to-show', _ => {
|
||||||
win.show()
|
win.show()
|
||||||
win.openDevTools()
|
// win.openDevTools()
|
||||||
})
|
})
|
||||||
|
|
||||||
win.on('close', ev => {
|
win.on('close', ev => {
|
||||||
|
|
Reference in New Issue