Added debug statement to work out why youtube videos won't offset

This commit is contained in:
MichaelOultram 2015-09-26 17:47:13 +01:00
parent 061370df0b
commit eaf10a39f1

View file

@ -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)