diff --git a/service_youtube.go b/service_youtube.go index 1568d8b..04c0eed 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -88,7 +88,7 @@ func (yt YouTube) NewSong(user *gumble.User, id, offset string, playlist Playlis title: title, id: id, url: "https://youtu.be/" + id, - offset: int(yt.parseTime(offset, `t\=(?P\d+d)?(?P\d+h)?(?P\d+m)?(?P\d+s)?`).Seconds()), + offset: int(yt.parseTime(offset, `t\=(?P\d+D)?(?P\d+H)?(?P\d+M)?(?P\d+S)?`).Seconds()), duration: int(yt.parseTime(duration, `P(?P\d+D)?T(?P\d+H)?(?P\d+M)?(?P\d+S)?`).Seconds()), thumbnail: thumbnail, format: "m4a",