From ac56ff69a96c5243d4c6d75922c33c3ff6099f6b Mon Sep 17 00:00:00 2001 From: guoyi <1806242240@qq.com> Date: Wed, 18 Mar 2020 18:01:03 +0800 Subject: [PATCH] update --- .../guoyi/musicapi/kugou/KuGouApiService.kt | 9 ++++ .../com/guoyi/musicapi/kugou/KugouPlayMv.kt | 47 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 musicapi/src/main/java/com/guoyi/musicapi/kugou/KugouPlayMv.kt diff --git a/musicapi/src/main/java/com/guoyi/musicapi/kugou/KuGouApiService.kt b/musicapi/src/main/java/com/guoyi/musicapi/kugou/KuGouApiService.kt index ec90dac..897ad65 100644 --- a/musicapi/src/main/java/com/guoyi/musicapi/kugou/KuGouApiService.kt +++ b/musicapi/src/main/java/com/guoyi/musicapi/kugou/KuGouApiService.kt @@ -1,5 +1,7 @@ package com.guoyi.musicapi.kugou +import com.guoyi.musicapi.baidu.BaiduApiService +import com.guoyi.musicapi.baidu.BaiduPlayMv import io.reactivex.Observable import retrofit2.http.GET import retrofit2.http.Headers @@ -29,4 +31,11 @@ interface KuGouApiService { @GET("yy/index.php?r=play/getdata") fun getTingSongInfo(@Query("hash") hash: String): Observable + + /** + * 获取mv信息 + */ + @GET("/app/i/mv.php?cmd=100&ismp3=1&ext=mp4") + fun getPlayMv(@Query("hash") hash: String?): Observable + } diff --git a/musicapi/src/main/java/com/guoyi/musicapi/kugou/KugouPlayMv.kt b/musicapi/src/main/java/com/guoyi/musicapi/kugou/KugouPlayMv.kt new file mode 100644 index 0000000..f8bb8a9 --- /dev/null +++ b/musicapi/src/main/java/com/guoyi/musicapi/kugou/KugouPlayMv.kt @@ -0,0 +1,47 @@ +package com.guoyi.musicapi.kugou + +data class KugouPlayMv( + val errcode: Int, + val error: String, + val id: Int, + val is_publish: Int, + val mp3data: Mp3data, + val mvdata: Mvdata, + val mvicon: String, + val play_count: Int, + val remark: String, + val singer: String, + val songname: String, + val status: Int, + val timelength: Int, + val track: Int, + val type: Int +) + +data class Mp3data( + val bitrate: Int, + val filesize: Int, + val hash: String, + val timelength: Int +) + +data class Mvdata( + val le: Le, + val rq: Rq, + val sq: Sq +) + +data class Le( + val backupdownurl: List, + val bitrate: Int, + val downurl: String, + val filesize: Int, + val hash: String, + val timelength: Int +) + +class Rq( +) + +class Sq( +) \ No newline at end of file