diff --git a/codegen/src/collect_video_durations.rs b/codegen/src/collect_video_durations.rs index 9ee06df..cfb5a64 100644 --- a/codegen/src/collect_video_durations.rs +++ b/codegen/src/collect_video_durations.rs @@ -204,8 +204,6 @@ pub fn parse_video_durations() { parse(&mut words, lang, dict_entry.by_char, txt, *d); } - // dbg!(&words); - for (k, v) in words { if let Some(v) = v { dict_entry.timeago_tokens.insert(k, v.to_string()); diff --git a/src/client/music_artist.rs b/src/client/music_artist.rs index 8e4deb6..c73b919 100644 --- a/src/client/music_artist.rs +++ b/src/client/music_artist.rs @@ -154,8 +154,6 @@ fn map_artist_page( ctx: &MapRespCtx<'_>, skip_extendables: bool, ) -> Result, ExtractionError> { - // dbg!(&res); - let header = res.header.music_immersive_header_renderer; if let Some(share) = header.share_endpoint { @@ -338,8 +336,6 @@ impl MapResponse for response::MusicArtistAlbums { self, ctx: &MapRespCtx<'_>, ) -> Result, ExtractionError> { - // dbg!(&self); - let Some(header) = self.header else { return Err(ExtractionError::NotFound { id: ctx.id.into(), diff --git a/src/client/music_genres.rs b/src/client/music_genres.rs index cfda986..c931fa4 100644 --- a/src/client/music_genres.rs +++ b/src/client/music_genres.rs @@ -105,8 +105,6 @@ impl MapResponse> for response::MusicGenres { impl MapResponse for response::MusicGenre { fn map_response(self, ctx: &MapRespCtx<'_>) -> Result, ExtractionError> { - // dbg!(&self); - let content = self .contents .single_column_browse_results_renderer diff --git a/src/client/music_playlist.rs b/src/client/music_playlist.rs index 7e9fbf7..92f9fcf 100644 --- a/src/client/music_playlist.rs +++ b/src/client/music_playlist.rs @@ -151,8 +151,6 @@ impl MapResponse for response::MusicPlaylist { self, ctx: &MapRespCtx<'_>, ) -> Result, ExtractionError> { - // dbg!(&self); - let (header, music_contents) = match self.contents { response::music_playlist::Contents::SingleColumnBrowseResultsRenderer(c) => ( self.header, @@ -340,8 +338,6 @@ impl MapResponse for response::MusicPlaylist { impl MapResponse for response::MusicPlaylist { fn map_response(self, ctx: &MapRespCtx<'_>) -> Result, ExtractionError> { - // dbg!(&self); - let (header, sections) = match self.contents { response::music_playlist::Contents::SingleColumnBrowseResultsRenderer(c) => ( self.header, diff --git a/src/client/music_search.rs b/src/client/music_search.rs index dd40ada..a083dcc 100644 --- a/src/client/music_search.rs +++ b/src/client/music_search.rs @@ -155,8 +155,6 @@ impl MapResponse> for response::MusicSearch self, ctx: &MapRespCtx<'_>, ) -> Result>, ExtractionError> { - // dbg!(&self); - let tabs = self.contents.tabbed_search_results_renderer.contents; let sections = tabs .into_iter() diff --git a/tests/youtube.rs b/tests/youtube.rs index 9a5fc35..d1e7475 100644 --- a/tests/youtube.rs +++ b/tests/youtube.rs @@ -40,8 +40,6 @@ async fn get_player_from_client(#[case] client_type: ClientType, rp: RustyPipe) .await .unwrap(); - // dbg!(&player_data); - assert_eq!(player_data.details.id, "n4tK7LYFxI0"); assert_eq!(player_data.details.duration, 259); assert!(!player_data.details.thumbnail.is_empty()); @@ -482,8 +480,6 @@ async fn playlist_not_found(rp: RustyPipe) { async fn get_video_details(rp: RustyPipe) { let details = rp.query().video_details("ZeerrnuLi5E").await.unwrap(); - // dbg!(&details); - assert_eq!(details.id, "ZeerrnuLi5E"); assert_eq!(details.name, "aespa 에스파 'Black Mamba' MV"); let desc = details.description.to_plaintext(); @@ -519,8 +515,6 @@ async fn get_video_details(rp: RustyPipe) { async fn get_video_details_music(rp: RustyPipe) { let details = rp.query().video_details("XuM2onMGvTI").await.unwrap(); - // dbg!(&details); - assert_eq!(details.id, "XuM2onMGvTI"); assert_eq!(details.name, "Gäa"); let desc = details.description.to_plaintext(); @@ -557,8 +551,6 @@ async fn get_video_details_music(rp: RustyPipe) { async fn get_video_details_ccommons(rp: RustyPipe) { let details = rp.query().video_details("0rb9CfOvojk").await.unwrap(); - // dbg!(&details); - assert_eq!(details.id, "0rb9CfOvojk"); assert_eq!( details.name, @@ -597,8 +589,6 @@ async fn get_video_details_ccommons(rp: RustyPipe) { async fn get_video_details_chapters(rp: RustyPipe) { let details = rp.query().video_details("nFDBxBUfE74").await.unwrap(); - // dbg!(&details); - assert_eq!(details.id, "nFDBxBUfE74"); assert_eq!(details.name, "The Prepper PC"); let desc = details.description.to_plaintext(); @@ -717,8 +707,6 @@ async fn get_video_details_chapters(rp: RustyPipe) { async fn get_video_details_live(rp: RustyPipe) { let details = rp.query().video_details("jfKfPfyJRdk").await.unwrap(); - // dbg!(&details); - assert_eq!(details.id, "jfKfPfyJRdk"); assert_eq!( details.name, @@ -759,8 +747,6 @@ async fn get_video_details_live(rp: RustyPipe) { async fn get_video_details_agelimit(rp: RustyPipe) { let details = rp.query().video_details("ZDKQmBWTRnw").await.unwrap(); - // dbg!(&details); - assert_eq!(details.id, "ZDKQmBWTRnw"); assert_eq!( details.name, @@ -864,7 +850,6 @@ async fn channel_videos(rp: RustyPipe) { .await .unwrap(); - // dbg!(&channel); assert_channel_eevblog(&channel); assert!( @@ -890,7 +875,6 @@ async fn channel_shorts(rp: RustyPipe) { .await .unwrap(); - // dbg!(&channel); assert_eq!(channel.id, "UCh8gHdtzO2tXd593_bjErWg"); assert_eq!(channel.name, "Doobydobap"); assert_eq!(channel.handle.as_deref(), Some("@Doobydobap")); @@ -919,7 +903,6 @@ async fn channel_livestreams(rp: RustyPipe) { .await .unwrap(); - // dbg!(&channel); assert_channel_eevblog(&channel); assert!(