fix: remove spotiflac libraries

This commit is contained in:
2026-02-15 17:10:08 +01:00
parent 30c86752b6
commit fc4b29b3eb
7 changed files with 22 additions and 24 deletions

25
lib/utils.go Normal file
View File

@@ -0,0 +1,25 @@
package pkg
import (
"strings"
)
type UrlType int
const (
UrlTypeTrack UrlType = iota
UrlTypePlaylist
UrlTypeInvalid
)
func GetUrlType(url string) UrlType {
if strings.Contains(url, "https://open.spotify.com/track") {
return UrlTypeTrack
}
if strings.Contains(url, "https://open.spotify.com/playlist") {
return UrlTypePlaylist
}
return UrlTypeInvalid
}