onecold 7 сар өмнө
parent
commit
06126ee043

+ 1 - 0
entry/src/main/ets/common/network/NavidromeApi.ets

@@ -48,6 +48,7 @@ export interface NavidromeSong {
   coverArt?: string;
   genre?: string;
   created?: string;
+  lyrics?: string;
 }
 
 interface SubsonicError {

+ 1 - 3
entry/src/main/ets/common/util/MusicTagUtils.ets

@@ -294,9 +294,7 @@ export async function changeMusicCover(
 
   try {
     await FFmpeg.execute(commands, {
-      logCallback: (logLevel: number, logMessage: string) => {
-        //console.log(`onecold [FFmpeg LOG] [${logLevel}]${logMessage}`);
-      },
+      logCallback: (message) => console.log(`[log]${message}`),
       progressCallback: (message: string) => {
         //console.log(`onecold [FFmpeg progress]${JSON.stringify(FFProgressMessageParser.parse(message))}`);
       },

+ 1 - 2
entry/src/main/ets/pages/WebDavMainPage.ets

@@ -1301,8 +1301,7 @@ export struct WebDavMainPage {
     }
     .justifyContent(FlexAlign.Center)
     .width('100%')
-    .padding({top: this.topSafeHeight+160})
-    .layoutWeight(1)
+    .height('100%')
   }
 
   // 内容视图

+ 2 - 3
entry/src/main/ets/view/NavidromePage.ets

@@ -1319,7 +1319,7 @@ export struct NavidromePage {
     void ServerLogUtil.debug('SongConvert', `- song.id: ${song.id}`);
     void ServerLogUtil.debug('SongConvert', `- song.artistId: ${song.artistId}`);
     void ServerLogUtil.debug('SongConvert', `- song.albumId: ${song.albumId}`);
-
+    void ServerLogUtil.debug('SongConvert', `- song.lyrics: ${song.lyrics}`);
     const videoItem = new VideoItem(
       title,
       song.id,
@@ -2430,8 +2430,7 @@ export struct NavidromePage {
             .fontColor($r('app.color.index_tab_unselected_font_color'))
         }
         .width('100%')
-        .layoutWeight(1)
-        .margin({ bottom: 180 })
+        .height('100%')
         .justifyContent(FlexAlign.Center)
       }
     }