diff --git a/README.md b/README.md index bec753a..0f74703 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ![RustyPipe](https://code.thetadev.de/ThetaDev/rustypipe/raw/branch/main/notes/logo.svg) +# RustyPipe Client for the public YouTube / YouTube Music API (Innertube), inspired by [NewPipe](https://github.com/TeamNewPipe/NewPipeExtractor). diff --git a/notes/logo.svg b/notes/logo.svg deleted file mode 100644 index b26ae18..0000000 --- a/notes/logo.svg +++ /dev/null @@ -1,110 +0,0 @@ - - - - diff --git a/src/client/mod.rs b/src/client/mod.rs index c428139..7eb83d1 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -304,6 +304,7 @@ impl DefaultOpt { /// - [`music_search_albums`](RustyPipeQuery::music_search_albums) /// - [`music_search_artists`](RustyPipeQuery::music_search_artists) /// - [`music_search_playlists`](RustyPipeQuery::music_search_playlists) +/// - [`music_search_playlists_filter`](RustyPipeQuery::music_search_playlists_filter) /// - [`music_search_suggestion`](RustyPipeQuery::music_search_suggestion) /// - **Radio** /// - [`music_radio`](RustyPipeQuery::music_radio) diff --git a/tests/snapshots/youtube__music_album_one_artist.snap b/tests/snapshots/youtube__music_album_one_artist.snap index b42f786..a44ac2d 100644 --- a/tests/snapshots/youtube__music_album_one_artist.snap +++ b/tests/snapshots/youtube__music_album_one_artist.snap @@ -16,7 +16,21 @@ MusicAlbum( artist_id: Some("UCwem2sj-QUJCiWiPAo9JuAw"), description: Some(RichText([ Text( - text: "Unbroken is the third studio album by American singer Demi Lovato. It was released on September 20, 2011, by Hollywood Records. Primarily a pop record, Lovato described the album as \"more mature\" and with more R&B elements than her previous material, citing Rihanna as the major influence. While some of the album\'s lyrical content was heavily influenced by Lovato\'s personal struggles, it also deals with lighter subjects, such as love and self empowerment. Contributions to the album\'s production came from a wide range of producers, including Toby Gad, Ryan Tedder, Timbaland, Jim Beanz and Rock Mafia.\nLovato initially began recording her third studio album in 2010 before going on tour with the Jonas Brothers on their Live in Concert Tour. After withdrawing from the tour to seek treatment for physical and emotional issues, Lovato continued work on the album and described the recording process as therapeutic. She collaborated with artists such as Missy Elliott, Timbaland, Dev, Iyaz, and Jason Derulo on several tracks.\n\nFrom Wikipedia (https://en.wikipedia.org/wiki/Unbroken_(Demi_Lovato_album)) under Creative Commons Attribution CC-BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode)", + text: "Unbroken is the third studio album by American singer Demi Lovato. It was released on September 20, 2011, by Hollywood Records. Primarily a pop record, Lovato described the album as \"more mature\" and with more R&B elements than her previous material, citing Rihanna as the major influence. While some of the album\'s lyrical content was heavily influenced by Lovato\'s personal struggles, it also deals with lighter subjects, such as love, self-empowerment, and having fun. Contributions to the album\'s production came from a wide range of producers, including Toby Gad, Ryan Tedder, Timbaland, Jim Beanz and Rock Mafia.\nLovato initially began recording her third studio album in 2010 before going on tour with the Jonas Brothers on their Live in Concert Tour. After withdrawing from the tour to seek treatment for physical and emotional issues, Lovato continued work on the album and described the recording process as therapeutic. She collaborated with artists such as Missy Elliott, Timbaland, Dev, Iyaz, and Jason Derulo on several tracks.\n\nFrom Wikipedia (", + ), + Web( + text: "https://en.wikipedia.org/wiki/Unbroke...", + url: "https://en.wikipedia.org/wiki/Unbroken_(Demi_Lovato_album)", + ), + Text( + text: ") under Creative Commons Attribution CC-BY-SA 3.0 (", + ), + Web( + text: "https://creativecommons.org/licenses/...", + url: "https://creativecommons.org/licenses/by-sa/3.0/legalcode", + ), + Text( + text: ")", ), ])), album_type: Album, diff --git a/tests/youtube.rs b/tests/youtube.rs index 5153015..8620981 100644 --- a/tests/youtube.rs +++ b/tests/youtube.rs @@ -1592,7 +1592,8 @@ async fn music_album(#[case] name: &str, #[case] id: &str, rp: RustyPipe, unloca assert!(!album.cover.is_empty(), "got no cover"); - if unlocalized { + // TODO: check full snapshot if A/B#13 is stabilized + if unlocalized && name != "one_artist" { insta::assert_ron_snapshot!(format!("music_album_{name}"), album, {".cover" => "[cover]", ".tracks[].view_count" => "[view_count]"} );