aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-02-18 12:37:19 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-02-18 12:37:19 +0100
commit0b5aca05ca1bba2cd43f3f2b45ac1b0137f2780f (patch)
treef017660f658b76b68192534d614a6ef89ba7e0ec /src/backend
parent771cfe4c0fec287d630f2d9b534705498b4fcc3c (diff)
feat(backend): add service id to item payload
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tubo/api/items.clj3
1 files changed, 3 insertions, 0 deletions
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)