Fixing build issues
This commit is contained in:
parent
6bae3203e8
commit
a876a98014
|
@ -8,10 +8,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/layeh/gopus"
|
||||
"github.com/layeh/gumble/gumble"
|
||||
"github.com/layeh/gumble/gumble_ffmpeg"
|
||||
"github.com/layeh/gumble/gumbleutil"
|
||||
)
|
||||
|
||||
// Service interface. Each service should implement these functions
|
||||
|
|
|
@ -21,6 +21,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/jmoiron/jsonq"
|
||||
"github.com/layeh/gumble/gumble"
|
||||
"github.com/layeh/gumble/gumble_ffmpeg"
|
||||
)
|
||||
|
||||
|
@ -37,7 +38,7 @@ func (yt *YoutubeService) ServiceName() string {
|
|||
}
|
||||
|
||||
// Checks to see if service will accept URL
|
||||
func (yt *YoutubeService) URLRegex(url) bool {
|
||||
func (yt *YoutubeService) URLRegex(url string) bool {
|
||||
youtubePatterns := []string{
|
||||
`https?:\/\/www\.youtube\.com\/watch\?v=([\w-]+)(\&t=\d*m?\d*s?)?`,
|
||||
`https?:\/\/youtube\.com\/watch\?v=([\w-]+)(\&t=\d*m?\d*s?)?`,
|
||||
|
@ -61,7 +62,7 @@ func (yt *YoutubeService) URLRegex(url) bool {
|
|||
}
|
||||
|
||||
// Creates the requested song/playlist and adds to the queue
|
||||
func (yt *YoutubeService) NewRequest(user, url) {
|
||||
func (yt *YoutubeService) NewRequest(user *gumble.User, url string) {
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue