From 9166ed65ff0d2cf4783d1efeab0630b4292fce68 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Fri, 30 Dec 2022 21:21:00 +0100 Subject: feat(backend): Use the same key for uploader --- src/backend/tau/api/items.clj | 8 ++++---- src/backend/tau/api/streams.clj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend') 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) -- cgit v1.2.3