diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-30 00:45:21 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-30 00:45:21 +0100 |
commit | a72ec6fc9e1c7dc93809e25e8722062725a59995 (patch) | |
tree | 1a260e57f35158c33c162b9303ce6bf8401de27e /src/backend/tau/api/channels.clj | |
parent | fce327a72558b41ce6a7303b38c804bfada694a1 (diff) |
feat(backend): Add service ID to API payload
Diffstat (limited to 'src/backend/tau/api/channels.clj')
-rw-r--r-- | src/backend/tau/api/channels.clj | 3 |
1 files changed, 2 insertions, 1 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)))] |