From eaf10a39f1897bd33b8449f7f10617a3a36b9a82 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sat, 26 Sep 2015 17:47:13 +0100 Subject: [PATCH] Added debug statement to work out why youtube videos won't offset --- service_youtube.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service_youtube.go b/service_youtube.go index 04c0eed..e2fc76c 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -105,6 +105,7 @@ func (yt YouTube) NewSong(user *gumble.User, id, offset string, playlist Playlis // parseTime converts from the string youtube returns to a time.Duration func (yt YouTube) parseTime(duration, regex string) time.Duration { + fmt.Printf("parseTime(%s)", duration) var days, hours, minutes, seconds, totalSeconds int64 if duration != "" { timestampExp := regexp.MustCompile(regex)