Added debug statement to work out why youtube videos won't offset
This commit is contained in:
parent
061370df0b
commit
eaf10a39f1
|
@ -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
|
// parseTime converts from the string youtube returns to a time.Duration
|
||||||
func (yt YouTube) parseTime(duration, regex string) time.Duration {
|
func (yt YouTube) parseTime(duration, regex string) time.Duration {
|
||||||
|
fmt.Printf("parseTime(%s)", duration)
|
||||||
var days, hours, minutes, seconds, totalSeconds int64
|
var days, hours, minutes, seconds, totalSeconds int64
|
||||||
if duration != "" {
|
if duration != "" {
|
||||||
timestampExp := regexp.MustCompile(regex)
|
timestampExp := regexp.MustCompile(regex)
|
||||||
|
|
Reference in a new issue