diff --git a/codegen/src/download_testfiles.rs b/codegen/src/download_testfiles.rs index 5bfd65c..9fafa11 100644 --- a/codegen/src/download_testfiles.rs +++ b/codegen/src/download_testfiles.rs @@ -340,7 +340,7 @@ async fn channel_playlists() { } async fn channel_info() { - let json_path = path!(*TESTFILES_DIR / "channel" / "channel_info2.json"); + let json_path = path!(*TESTFILES_DIR / "channel" / "channel_info.json"); if json_path.exists() { return; } diff --git a/src/client/channel.rs b/src/client/channel.rs index c02d8fb..1907160 100644 --- a/src/client/channel.rs +++ b/src/client/channel.rs @@ -189,7 +189,7 @@ impl RustyPipeQuery { self.execute_request::( ClientType::Desktop, - "channel_info2", + "channel_info", channel_id, "browse", &request_body, diff --git a/src/util/mod.rs b/src/util/mod.rs index c1c4f17..e48cd2b 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -467,11 +467,11 @@ pub fn video_id_from_thumbnail_url(url: &str) -> Option { } pub fn b64_encode>(input: T) -> String { - base64::engine::general_purpose::STANDARD.encode(input) + base64::engine::general_purpose::URL_SAFE.encode(input) } pub fn b64_decode>(input: T) -> Result, base64::DecodeError> { - base64::engine::general_purpose::STANDARD.decode(input) + base64::engine::general_purpose::URL_SAFE.decode(input) } /// Get the country from its English name