feat!: add userdata feature for all personal data queries (playback history, subscriptions)
This commit is contained in:
parent
fd5801938d
commit
4516dddaeb
31 changed files with 189 additions and 143 deletions
|
|
@ -33,28 +33,6 @@ impl RustyPipeQuery {
|
|||
)
|
||||
.await
|
||||
}
|
||||
|
||||
/// Get all liked videos of the logged-in user
|
||||
///
|
||||
/// Requires authentication cookies.
|
||||
pub async fn liked_videos(&self) -> Result<Playlist, Error> {
|
||||
self.clone()
|
||||
.authenticated()
|
||||
.playlist("LL")
|
||||
.await
|
||||
.map_err(util::map_internal_playlist_err)
|
||||
}
|
||||
|
||||
/// Get the "Watch later" playlist of the logged-in user
|
||||
///
|
||||
/// Requires authentication cookies.
|
||||
pub async fn watch_later(&self) -> Result<Playlist, Error> {
|
||||
self.clone()
|
||||
.authenticated()
|
||||
.playlist("WL")
|
||||
.await
|
||||
.map_err(util::map_internal_playlist_err)
|
||||
}
|
||||
}
|
||||
|
||||
impl MapResponse<Playlist> for response::Playlist {
|
||||
|
|
|
|||
Reference in a new issue