mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 12:51:13 +00:00
some fix WSSongListRoutes.kt
- add url parameters
This commit is contained in:
@@ -198,6 +198,7 @@ class UserHandler(
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
)
|
||||
)
|
||||
|
@@ -241,6 +241,7 @@ class MessageHandler(
|
||||
video.name,
|
||||
video.author,
|
||||
video.length,
|
||||
video.url
|
||||
))
|
||||
}
|
||||
|
||||
|
@@ -16,6 +16,7 @@ class SongEvent(
|
||||
val name: String?,
|
||||
val author: String?,
|
||||
val time: Int?,
|
||||
val url: String?
|
||||
): Event {
|
||||
var TAG = javaClass.simpleName
|
||||
}
|
@@ -60,9 +60,11 @@ fun Routing.wsSongListRoutes() {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
))
|
||||
}
|
||||
removeSession(sid, this)
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -87,7 +89,8 @@ fun Routing.wsSongListRoutes() {
|
||||
user.username,
|
||||
youtubeVideo.name,
|
||||
youtubeVideo.author,
|
||||
youtubeVideo.length
|
||||
youtubeVideo.length,
|
||||
youtubeVideo.url
|
||||
))
|
||||
}
|
||||
}
|
||||
@@ -106,7 +109,8 @@ fun Routing.wsSongListRoutes() {
|
||||
user.username,
|
||||
song.name,
|
||||
song.author,
|
||||
0
|
||||
0,
|
||||
song.url
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -121,6 +125,7 @@ fun Routing.wsSongListRoutes() {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
))
|
||||
}
|
||||
}
|
||||
@@ -151,7 +156,8 @@ fun Routing.wsSongListRoutes() {
|
||||
it.reqUid,
|
||||
it.name,
|
||||
it.author,
|
||||
it.time
|
||||
it.time,
|
||||
it.url
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -174,8 +180,10 @@ fun Routing.wsSongListRoutes() {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
)
|
||||
)
|
||||
removeSession(session.token ?: "", ws)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -53,6 +53,7 @@ fun Routing.wsSongRoutes() {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
))
|
||||
}
|
||||
@@ -89,7 +90,8 @@ fun Routing.wsSongRoutes() {
|
||||
it.reqUid,
|
||||
it.name,
|
||||
it.author,
|
||||
it.time
|
||||
it.time,
|
||||
it.url
|
||||
))
|
||||
}
|
||||
}
|
||||
@@ -105,6 +107,7 @@ fun Routing.wsSongRoutes() {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
))
|
||||
}
|
||||
}
|
||||
@@ -119,5 +122,6 @@ data class SongResponse(
|
||||
val reqUid: String?,
|
||||
val name: String?,
|
||||
val author: String?,
|
||||
val time: Int?
|
||||
val time: Int?,
|
||||
val url: String?
|
||||
)
|
||||
|
Reference in New Issue
Block a user