Fixing build issues
This commit is contained in:
parent
a876a98014
commit
7ce5572d9c
|
@ -50,5 +50,5 @@ type Playlist interface {
|
|||
}
|
||||
|
||||
var services = []Service{
|
||||
new(YoutubeService),
|
||||
new(*YoutubeService),
|
||||
}
|
||||
|
|
|
@ -33,12 +33,12 @@ type YouTubeService struct {
|
|||
}
|
||||
|
||||
// Name of the service
|
||||
func (yt *YoutubeService) ServiceName() string {
|
||||
func (yt YoutubeService) ServiceName() string {
|
||||
return "Youtube"
|
||||
}
|
||||
|
||||
// Checks to see if service will accept URL
|
||||
func (yt *YoutubeService) URLRegex(url string) 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?)?`,
|
||||
|
@ -62,7 +62,7 @@ func (yt *YoutubeService) URLRegex(url string) bool {
|
|||
}
|
||||
|
||||
// Creates the requested song/playlist and adds to the queue
|
||||
func (yt *YoutubeService) NewRequest(user *gumble.User, url string) {
|
||||
func (yt YoutubeService) NewRequest(user *gumble.User, url string) {
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue