added musify test

This commit is contained in:
Hazel Noack
2025-10-06 15:21:55 +02:00
parent c43a7cb154
commit b1cc6506d0
2 changed files with 31 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ type SourceType struct {
var SourceTypes = []SourceType{
{Name: "Youtube", Regex: *regexp.MustCompile(`(?i)\b(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})\b`)},
{Name: "Musify", Regex: *regexp.MustCompile(`(?i)https?://musify\.club/(artist|track|release)/[a-z\-0-9]+`)},
}
func GetSourceType(name string) *SourceType {