Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-27 22:24:35 +01:00
parent 5e0f48803f
commit 28332a78ab
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -32,12 +32,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) bool { func (yt *YoutubeService) URLRegex(url) 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?)?`,
@ -61,7 +61,7 @@ func (yt YoutubeService) URLRegex(url) 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, url) { func (yt *YoutubeService) NewRequest(user, url) {
} }