ability to reference source type
This commit is contained in:
@@ -22,7 +22,8 @@ func extractName(s string) string {
|
||||
const musifyHost = "https://musify.club"
|
||||
|
||||
type Musify struct {
|
||||
session *scraper.Session
|
||||
session *scraper.Session
|
||||
sourceType data.SourceType
|
||||
}
|
||||
|
||||
func (m Musify) Name() string {
|
||||
@@ -41,8 +42,9 @@ func (m Musify) RegexAlbum() *regexp.Regexp {
|
||||
return regexp.MustCompile(`(?i)https?://musify\.club/release/[a-z\-0-9]+`)
|
||||
}
|
||||
|
||||
func (m *Musify) Init() {
|
||||
func (m *Musify) Init(sourceType data.SourceType) {
|
||||
m.session = scraper.NewSession()
|
||||
m.sourceType = sourceType
|
||||
}
|
||||
|
||||
func (m Musify) RegexSong() *regexp.Regexp {
|
||||
|
||||
Reference in New Issue
Block a user