Add validation package #19
@ -3,7 +3,6 @@ package validation
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
neturl "net/url"
|
neturl "net/url"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@ -46,7 +45,6 @@ func IsMusicUrl(url string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, host := range musicHosts {
|
for _, host := range musicHosts {
|
||||||
log.Println(parsed.Host)
|
|
||||||
if host == parsed.Host {
|
if host == parsed.Host {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user