sync with official content
This commit is contained in:
parent
85e5fa9937
commit
a91e525b1c
14
src/App.vue
14
src/App.vue
|
@ -5,19 +5,19 @@
|
|||
</el-main>
|
||||
<el-footer id="app-footer">
|
||||
<div>
|
||||
<a href="https://github.com/ix64/unlock-music" target="_blank">音乐解锁</a>({{ version }})
|
||||
<a href="https://git.unlock-music.dev/um/web" target="_blank">音乐解锁</a>({{ version }})
|
||||
:移除已购音乐的加密保护。
|
||||
<a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
|
||||
<a href="https://git.unlock-music.dev/um/web/wiki/使用提示" target="_blank">使用提示</a>
|
||||
</div>
|
||||
<div>
|
||||
目前支持 网易云音乐(ncm), QQ音乐(qmc, mflac, mgg), 酷狗音乐(kgm), 虾米音乐(xm), 酷我音乐(.kwm)
|
||||
<a href="https://github.com/ix64/unlock-music/blob/master/README.md" target="_blank">更多</a>。
|
||||
<a href="https://git.unlock-music.dev/um/web/src/branch/master/README.md" target="_blank">更多</a>。
|
||||
</div>
|
||||
<div>
|
||||
<!--如果进行二次开发,此行版权信息不得移除且应明显地标注于页面上-->
|
||||
<span>Copyright © 2019 - {{ new Date().getFullYear() }} MengYX</span>
|
||||
音乐解锁使用
|
||||
<a href="https://github.com/ix64/unlock-music/blob/master/LICENSE" target="_blank">MIT许可协议</a>
|
||||
<a href="https://git.unlock-music.dev/um/web/src/branch/master/LICENSE" target="_blank">MIT许可协议</a>
|
||||
开放源代码
|
||||
</div>
|
||||
</el-footer>
|
||||
|
@ -44,9 +44,7 @@ export default {
|
|||
};
|
||||
},
|
||||
created() {
|
||||
this.$nextTick(() => {
|
||||
this.finishLoad()
|
||||
});
|
||||
this.$nextTick(() => this.finishLoad());
|
||||
},
|
||||
methods: {
|
||||
async finishLoad() {
|
||||
|
@ -79,7 +77,7 @@ export default {
|
|||
<div class="update-title">最近更新</div>
|
||||
<div class="update-content"> ${config.updateInfo} </div>
|
||||
</div>
|
||||
<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>
|
||||
<a target="_blank" href="https://git.unlock-music.dev/um/web/wiki/使用提示">使用提示</a>
|
||||
</div>`,
|
||||
dangerouslyUseHTMLString: true,
|
||||
duration: 10000,
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
:album="editing_data.album"
|
||||
:albumartist="editing_data.albumartist"
|
||||
:genre="editing_data.genre"
|
||||
@cancel="showEditDialog = false" @ok="handleEdit"></edit-dialog>
|
||||
@cancel="showEditDialog = false"
|
||||
@ok="handleEdit"
|
||||
></edit-dialog>
|
||||
<config-dialog :show="showConfigDialog" @done="showConfigDialog = false"></config-dialog>
|
||||
<el-tooltip class="item" effect="dark" placement="top">
|
||||
<div slot="content">
|
||||
|
@ -37,7 +39,7 @@
|
|||
开启后,解锁结果将不会存留于浏览器中,防止内存不足。
|
||||
</span>
|
||||
</div>
|
||||
<el-checkbox v-model="instant_save" type="success" border class="ml-2">立即保存</el-checkbox>
|
||||
<el-checkbox v-model="instant_save" type="success" border class="ml-2">立即保存</el-checkbox>
|
||||
</el-tooltip>
|
||||
</el-row>
|
||||
</div>
|
||||
|
@ -50,7 +52,8 @@
|
|||
:table-data="tableData"
|
||||
@download="saveFile"
|
||||
@edit="editFile"
|
||||
@play="changePlaying" />
|
||||
@play="changePlaying"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -76,7 +79,7 @@ export default {
|
|||
return {
|
||||
showConfigDialog: false,
|
||||
showEditDialog: false,
|
||||
editing_data: { picture: '', title: '', artist: '', album: '', albumartist: '', genre: '', },
|
||||
editing_data: { picture: '', title: '', artist: '', album: '', albumartist: '', genre: '' },
|
||||
tableData: [],
|
||||
playing_url: '',
|
||||
playing_auto: false,
|
||||
|
@ -117,7 +120,7 @@ export default {
|
|||
errInfo +
|
||||
',' +
|
||||
filename +
|
||||
',参考<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
|
||||
',参考<a target="_blank" href="https://git.unlock-music.dev/um/web/wiki/使用提示">使用提示</a>',
|
||||
dangerouslyUseHTMLString: true,
|
||||
duration: 6000,
|
||||
});
|
||||
|
@ -170,12 +173,13 @@ export default {
|
|||
console.warn('获取图像失败', this.editing_data.picture);
|
||||
}
|
||||
}
|
||||
const newMeta = { picture: imageInfo?.buffer,
|
||||
const newMeta = {
|
||||
picture: imageInfo?.buffer,
|
||||
title: data.title,
|
||||
artists: data.artist.split(split_regex),
|
||||
album: data.album,
|
||||
albumartist: data.albumartist,
|
||||
genre: data.genre.split(split_regex)
|
||||
genre: data.genre.split(split_regex),
|
||||
};
|
||||
const buffer = Buffer.from(await this.editing_data.blob.arrayBuffer());
|
||||
const mime = AudioMimeType[this.editing_data.ext] || AudioMimeType.mp3;
|
||||
|
|
Loading…
Reference in New Issue