aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tubo/api/streams.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tubo/api/streams.clj b/src/backend/tubo/api/streams.clj
index 274d5f2..6ce2086 100644
--- a/src/backend/tubo/api/streams.clj
+++ b/src/backend/tubo/api/streams.clj
@@ -25,7 +25,7 @@
:duration (.getDuration info)
:tags (.getTags info)
:category (.getCategory info)
- :view-count (.getViewCount info)
+ :view-count (when-not (= (.getViewCount info) -1) (.getViewCount info))
:like-count (when-not (= (.getLikeCount info) -1) (.getLikeCount info))
:dislike-count (when-not (= (.getDislikeCount info) -1) (.getDislikeCount info))
:subscriber-count (when-not (= (.getUploaderSubscriberCount info) -1) (.getUploaderSubscriberCount info))