From 061370df0b7ab920dc7d86a57dc480f8e292c20d Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sat, 26 Sep 2015 17:44:33 +0100 Subject: [PATCH] Fixed youtube offset --- service_youtube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",