Fixing build issues
This commit is contained in:
parent
7b737b03ab
commit
5e0f48803f
|
@ -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) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue