|
|
@@ -1349,11 +1349,9 @@ export struct LocalMusic {
|
|
|
}
|
|
|
|
|
|
console.info(`onecold gengxin 1: ${this.videoLocalList.length}`);
|
|
|
- // for (let i = 0; i < this.videoLocalList.length; i++) {
|
|
|
- //
|
|
|
- // console.info(`onecold gengxin 1: ${this.videoLocalList[i].pixelMapPath}`);
|
|
|
- //
|
|
|
- // }
|
|
|
+ for (let i = 0; i < this.videoLocalList.length; i++) {
|
|
|
+ console.info(`onecold gengxin 1: ${this.videoLocalList[i].name}`);
|
|
|
+ }
|
|
|
|
|
|
// this.setButtonStatus()
|
|
|
this.openMusic(isOpen, destPath,openItem)
|
|
|
@@ -6495,6 +6493,7 @@ export struct LocalMusic {
|
|
|
const task = new taskpool.Task(
|
|
|
updateInfoDb,
|
|
|
this.context,
|
|
|
+ item.filePath,
|
|
|
this.titleStr,
|
|
|
this.artistStr,
|
|
|
this.ablumStr,
|
|
|
@@ -6502,7 +6501,7 @@ export struct LocalMusic {
|
|
|
this.yearStr,this.genreStr,
|
|
|
this.trackStr,this.albumArtistStr,
|
|
|
this.composerStr, this.lyricistStr,
|
|
|
- this.commentStr,this.discStr,
|
|
|
+ this.commentStr,this.discStr
|
|
|
);
|
|
|
taskpool.execute(task, taskpool.Priority.HIGH).then((result) => {
|
|
|
if (result) {
|
|
|
@@ -14319,6 +14318,11 @@ async function updateInfoDb(
|
|
|
discStr: string,
|
|
|
): Promise<boolean> {
|
|
|
const table: MediaTable = new MediaTable(context);
|
|
|
+ await new Promise<void>((resolve, reject) => {
|
|
|
+ table.getRdbStore(context, (err:Error) => {
|
|
|
+ err ? reject(err) : resolve();
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
return table.updateMediaInfo(filePath, titleStr, artistStr, albumStr, lyricConStr,
|
|
|
yearStr, genreStr, trackStr, albumArtistStr, composerStr, lyricistStr, commentStr, discStr,
|