From 0b5aca05ca1bba2cd43f3f2b45ac1b0137f2780f Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sun, 18 Feb 2024 12:37:19 +0100 Subject: feat(backend): add service id to item payload --- src/backend/tubo/api/items.clj | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/backend') diff --git a/src/backend/tubo/api/items.clj b/src/backend/tubo/api/items.clj index 63678c1..8519449 100644 --- a/src/backend/tubo/api/items.clj +++ b/src/backend/tubo/api/items.clj @@ -3,6 +3,7 @@ (defn get-stream-item [stream] {:type :stream + :service-id (.getServiceId stream) :url (.getUrl stream) :name (.getName stream) :thumbnail-url (.getThumbnailUrl stream) @@ -20,6 +21,7 @@ (defn get-channel-item [channel] {:type :channel + :service-id (.getServiceId channel) :url (.getUrl channel) :name (.getName channel) :thumbnail-url (.getThumbnailUrl channel) @@ -31,6 +33,7 @@ (defn get-playlist-item [playlist] {:type :playlist + :service-id (.getServiceId playlist) :url (.getUrl playlist) :name (.getName playlist) :thumbnail-url (.getThumbnailUrl playlist) -- cgit v1.2.3