Fixing build issues
This commit is contained in:
parent
2da725e736
commit
603e1c443a
|
@ -71,7 +71,7 @@ func (y YouTube) NewRequest(user *gumble.User, url string) error {
|
||||||
if re.MatchString(url) {
|
if re.MatchString(url) {
|
||||||
if dj.HasPermission(user.Name, dj.conf.Permissions.AdminAddPlaylists) {
|
if dj.HasPermission(user.Name, dj.conf.Permissions.AdminAddPlaylists) {
|
||||||
shortURL = re.FindStringSubmatch(url)[1]
|
shortURL = re.FindStringSubmatch(url)[1]
|
||||||
NewYouTubePlaylist(user.Name, shortURL)
|
NewYouTubePlaylist(user, shortURL)
|
||||||
} else {
|
} else {
|
||||||
return errors.New("NO_PLAYLIST_PERMISSION")
|
return errors.New("NO_PLAYLIST_PERMISSION")
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ func (y YouTube) NewRequest(user *gumble.User, url string) error {
|
||||||
if len(matches[0]) == 3 {
|
if len(matches[0]) == 3 {
|
||||||
startOffset = matches[0][2]
|
startOffset = matches[0][2]
|
||||||
}
|
}
|
||||||
NewYouTubeSong(user.Name, shortURL, startOffset, nil)
|
NewYouTubeSong(user, shortURL, startOffset, nil)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue