aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-30 21:21:00 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-30 21:21:00 +0100
commit9166ed65ff0d2cf4783d1efeab0630b4292fce68 (patch)
treeea8d140103dbd5014ac715d5c9e96176f65556ac /src/backend
parent26b7abf9338e8434cb65d31b86e4407edbe1eac8 (diff)
feat(backend): Use the same key for uploader
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tau/api/items.clj8
-rw-r--r--src/backend/tau/api/streams.clj2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/tau/api/items.clj b/src/backend/tau/api/items.clj
index e251330..676af3e 100644
--- a/src/backend/tau/api/items.clj
+++ b/src/backend/tau/api/items.clj
@@ -6,9 +6,9 @@
:url (.getUrl stream)
:name (.getName stream)
:thumbnail-url (.getThumbnailUrl stream)
- :upload-author (.getUploaderName stream)
- :upload-url (.getUploaderUrl stream)
- :upload-avatar (.getUploaderAvatarUrl stream)
+ :uploader-name (.getUploaderName stream)
+ :uploader-url (.getUploaderUrl stream)
+ :uploader-avatar (.getUploaderAvatarUrl stream)
:upload-date (.getTextualUploadDate stream)
:short-description (.getShortDescription stream)
:duration (.getDuration stream)
@@ -35,7 +35,7 @@
:url (.getUrl playlist)
:name (.getName playlist)
:thumbnail-url (.getThumbnailUrl playlist)
- :upload-author (.getUploaderName playlist)
+ :uploader-name (.getUploaderName playlist)
:stream-count (when-not (= (.getStreamCount playlist) -1) (.getStreamCount playlist))})
(defn get-items
diff --git a/src/backend/tau/api/streams.clj b/src/backend/tau/api/streams.clj
index 46d8008..e1bd637 100644
--- a/src/backend/tau/api/streams.clj
+++ b/src/backend/tau/api/streams.clj
@@ -16,7 +16,7 @@
:url (.getUrl info)
:description (.. info (getDescription) (getContent))
:upload-date (.getTextualUploadDate info)
- :uploader-author (.getUploaderName info)
+ :uploader-name (.getUploaderName info)
:uploader-url (.getUploaderUrl info)
:uploader-avatar (.getUploaderAvatarUrl info)
:uploader-verified? (.isUploaderVerified info)