Artist pages list the artist's clips and Collection gets a Clips tab with the liked ones. A clip opens on the Yandex Music website, since there's no video player in the app; the heart on each card likes it. Clips are read from raw JSON because the artist block calls the id `id` where /clips says `clipId`. Snapshot runs can open `artist:<id>`.
29 lines
882 B
Rust
29 lines
882 B
Rust
//! Client for the unofficial Yandex Music API.
|
|
//!
|
|
//! Wraps [`yamuse`] so the app only ever sees this crate's own types: if the
|
|
//! upstream wrapper changes or is swapped out, the UI doesn't move.
|
|
|
|
pub mod auth;
|
|
mod client;
|
|
mod clips;
|
|
mod discover;
|
|
mod edit;
|
|
mod error;
|
|
mod library;
|
|
mod models;
|
|
mod wave;
|
|
|
|
pub use client::{Account, YmClient};
|
|
pub use clips::Clip;
|
|
pub use library::{
|
|
AlbumKind, AlbumPage, AlbumSummary, ArtistPage, ArtistSummary, LibraryPlaylists, PlaylistId,
|
|
PlaylistPage, PlaylistSummary,
|
|
};
|
|
pub use models::{AlbumRef, ArtistRef, Stream, Track};
|
|
pub use wave::{
|
|
Character, Language, MY_WAVE, Mood, PlayReport, Station, WaveBatch, WaveEvent, WaveSettings,
|
|
};
|
|
pub use discover::{BestMatch, ChartEntry, Genre, Home, Personal, SearchKind, SearchResults, Totals};
|
|
pub use edit::{LikedIds, LyricLine, Lyrics, QueueContext};
|
|
pub use error::{Error, Result};
|