mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
chisu playlist fix
- if youtube video limited 10-min - add youtube music regex.
This commit is contained in:
@@ -15,7 +15,7 @@ data class YoutubeVideo(
|
||||
val length: Int
|
||||
)
|
||||
|
||||
val regex = ".*(?:youtu.be/|v/|u/\\w/|embed/|watch\\?v=|&v=)([^#&?]*).*".toRegex()
|
||||
val regex = ".*(?:youtu.be/|v/|u/\\w/|embed/|watch\\?v=|&v=|music\\.youtube\\.com/.*?\\?v=)([^#&?]*).*".toRegex()
|
||||
val durationRegex = """PT(\d+H)?(\d+M)?(\d+S)?""".toRegex()
|
||||
|
||||
val dotenv = dotenv {
|
||||
|
Reference in New Issue
Block a user