added audio url to datatype
This commit is contained in:
@@ -20,6 +20,8 @@ const ArtistSource = ObjectType("artist")
|
||||
|
||||
type Source struct {
|
||||
Url string
|
||||
AudioUrl string // will only be used when ObjectType = SongSource
|
||||
|
||||
SourceType *SourceType
|
||||
ObjectType ObjectType
|
||||
}
|
||||
@@ -38,6 +40,9 @@ func dedupeSources(inputSources []Source) []Source {
|
||||
if source.SourceType != nil {
|
||||
deduped[mergeWithIndex].SourceType = source.SourceType
|
||||
}
|
||||
if source.AudioUrl != "" {
|
||||
deduped[mergeWithIndex].AudioUrl = source.AudioUrl
|
||||
}
|
||||
|
||||
} else {
|
||||
// just appending
|
||||
|
||||
Reference in New Issue
Block a user