Fixing build issues
This commit is contained in:
parent
7ce5572d9c
commit
3f9613e0f3
|
@ -48,7 +48,3 @@ type Playlist interface {
|
|||
ID() string
|
||||
Title() string
|
||||
}
|
||||
|
||||
var services = []Service{
|
||||
new(*YoutubeService),
|
||||
}
|
||||
|
|
|
@ -29,16 +29,20 @@ import (
|
|||
// YOUTUBE SERVICE
|
||||
// ---------------
|
||||
|
||||
type YouTubeService struct {
|
||||
var services = []Service{
|
||||
Youtube{},
|
||||
}
|
||||
|
||||
type YouTube struct {
|
||||
}
|
||||
|
||||
// Name of the service
|
||||
func (yt YoutubeService) ServiceName() string {
|
||||
func (y Youtube) ServiceName() string {
|
||||
return "Youtube"
|
||||
}
|
||||
|
||||
// Checks to see if service will accept URL
|
||||
func (yt YoutubeService) URLRegex(url string) bool {
|
||||
func (y Youtube) 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 +66,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 (y Youtube) NewRequest(user *gumble.User, url string) {
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue