From a72ec6fc9e1c7dc93809e25e8722062725a59995 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Fri, 30 Dec 2022 00:45:21 +0100 Subject: feat(backend): Add service ID to API payload --- src/backend/tau/api/playlists.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/tau/api/playlists.clj') 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)))] -- cgit v1.2.3