From 65ada372143756896a899b14d56d586eef3f56c7 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Thu, 26 Dec 2024 01:25:05 +0100 Subject: [PATCH] clarify description of music_saved_tracks and music_liked_tracks --- src/client/music_history.rs | 2 ++ src/client/music_playlist.rs | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/music_history.rs b/src/client/music_history.rs index 432fdc6..0ef3bea 100644 --- a/src/client/music_history.rs +++ b/src/client/music_history.rs @@ -68,6 +68,8 @@ impl RustyPipeQuery { /// Get a list of YouTube Music tracks which the current user has added to their collection /// + /// Contains both liked tracks and tracks from saved albums. + /// /// Requires authentication cookies. #[tracing::instrument(skip(self), level = "error")] pub async fn music_saved_tracks(&self) -> Result, Error> { diff --git a/src/client/music_playlist.rs b/src/client/music_playlist.rs index a85acf3..efe4859 100644 --- a/src/client/music_playlist.rs +++ b/src/client/music_playlist.rs @@ -123,7 +123,10 @@ impl RustyPipeQuery { Ok(album) } - /// Get all liked tracks of the logged-in user + /// Get all liked YouTube Music tracks of the logged-in user + /// + /// The difference to [`RustyPipeQuery::music_saved_tracks`] is that this function only returns + /// tracks that were explicitly liked by the user. /// /// Requires authentication cookies. pub async fn music_liked_tracks(&self) -> Result {