Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoyiZhang committed Mar 18, 2020
1 parent 00a80f7 commit ac56ff6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -29,4 +31,11 @@ interface KuGouApiService {
@GET("yy/index.php?r=play/getdata")
fun getTingSongInfo(@Query("hash") hash: String): Observable<KugouSongInfo>


/**
* 获取mv信息
*/
@GET("/app/i/mv.php?cmd=100&ismp3=1&ext=mp4")
fun getPlayMv(@Query("hash") hash: String?): Observable<KugouPlayMv>

}
47 changes: 47 additions & 0 deletions musicapi/src/main/java/com/guoyi/musicapi/kugou/KugouPlayMv.kt
Original file line number Diff line number Diff line change
@@ -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<String>,
val bitrate: Int,
val downurl: String,
val filesize: Int,
val hash: String,
val timelength: Int
)

class Rq(
)

class Sq(
)

0 comments on commit ac56ff6

Please sign in to comment.