diff --git a/internal/data/source.go b/internal/data/source.go index 1720536..3fe156f 100644 --- a/internal/data/source.go +++ b/internal/data/source.go @@ -19,7 +19,9 @@ const AlbumSource = ObjectType("album") const ArtistSource = ObjectType("artist") type Source struct { - Url string + 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