mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2026-10-25 17:11:16 +09:00
chisu playlist fix
- if youtube video limited 10-min - add youtube music regex.
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -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