Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-27 22:31:10 +01:00
parent a876a98014
commit 7ce5572d9c
2 changed files with 4 additions and 4 deletions

View file

@ -50,5 +50,5 @@ type Playlist interface {
} }
var services = []Service{ var services = []Service{
new(YoutubeService), new(*YoutubeService),
} }

View file

@ -33,12 +33,12 @@ type YouTubeService struct {
} }
// Name of the service // Name of the service
func (yt *YoutubeService) ServiceName() string { func (yt YoutubeService) ServiceName() string {
return "Youtube" return "Youtube"
} }
// Checks to see if service will accept URL // Checks to see if service will accept URL
func (yt *YoutubeService) URLRegex(url string) bool { func (yt YoutubeService) URLRegex(url string) bool {
youtubePatterns := []string{ youtubePatterns := []string{
`https?:\/\/www\.youtube\.com\/watch\?v=([\w-]+)(\&t=\d*m?\d*s?)?`, `https?:\/\/www\.youtube\.com\/watch\?v=([\w-]+)(\&t=\d*m?\d*s?)?`,
`https?:\/\/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 // 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) {
} }