diff --git a/service.go b/service.go index dabaa69..b1e8ff2 100644 --- a/service.go +++ b/service.go @@ -50,5 +50,5 @@ type Playlist interface { } var services = []Service{ - new(YoutubeService), + new(*YoutubeService), } diff --git a/service_youtube.go b/service_youtube.go index 0be1734..4abd1f6 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -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) { }