aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tau/api/channels.clj3
-rw-r--r--src/backend/tau/api/playlists.clj3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/tau/api/channels.clj b/src/backend/tau/api/channels.clj
index 695a3fd..2c82767 100644
--- a/src/backend/tau/api/channels.clj
+++ b/src/backend/tau/api/channels.clj
@@ -20,7 +20,8 @@
:subscriber-count (when-not (= (.getSubscriberCount info) -1) (.getSubscriberCount info))
:donation-links (.getDonationLinks info)
:next-page (j/from-java (.getNextPage info))
- :related-streams (items/get-items (.getRelatedItems info))}))
+ :related-streams (items/get-items (.getRelatedItems info))
+ :service-id (.getServiceId info)}))
([url page-url]
(let [service (NewPipe/getServiceByUrl (url-decode url))
info (ChannelInfo/getMoreItems service (url-decode url) (Page. (url-decode page-url)))]
diff --git a/src/backend/tau/api/playlists.clj b/src/backend/tau/api/playlists.clj
index 92e8e8d..5520d2b 100644
--- a/src/backend/tau/api/playlists.clj
+++ b/src/backend/tau/api/playlists.clj
@@ -22,7 +22,8 @@
:uploader-avatar (.getUploaderAvatarUrl info)
:stream-count (.getStreamCount info)
:next-page (j/from-java (.getNextPage info))
- :related-streams (items/get-items (.getRelatedItems info))}))
+ :related-streams (items/get-items (.getRelatedItems info))
+ :service-id (.getServiceId info)}))
([url page-url]
(let [service (NewPipe/getServiceByUrl (url-decode url))
info (PlaylistInfo/getMoreItems service url (Page. (url-decode page-url)))]