From 82c541653c9f2213cee3416ebd24def91845580e Mon Sep 17 00:00:00 2001 From: acute_interpreter_panic <223899499+acute-interpreter-panic@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:25:29 +0200 Subject: [PATCH] added audio url to datatype --- internal/data/source.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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