fix: use url-safe base64, rename channel_info2 operation
This commit is contained in:
parent
b0a0df50b4
commit
342780ef68
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ impl RustyPipeQuery {
|
|||
|
||||
self.execute_request::<response::ChannelAbout, _, _>(
|
||||
ClientType::Desktop,
|
||||
"channel_info2",
|
||||
"channel_info",
|
||||
channel_id,
|
||||
"browse",
|
||||
&request_body,
|
||||
|
|
|
|||
|
|
@ -467,11 +467,11 @@ pub fn video_id_from_thumbnail_url(url: &str) -> Option<String> {
|
|||
}
|
||||
|
||||
pub fn b64_encode<T: AsRef<[u8]>>(input: T) -> String {
|
||||
base64::engine::general_purpose::STANDARD.encode(input)
|
||||
base64::engine::general_purpose::URL_SAFE.encode(input)
|
||||
}
|
||||
|
||||
pub fn b64_decode<T: AsRef<[u8]>>(input: T) -> Result<Vec<u8>, base64::DecodeError> {
|
||||
base64::engine::general_purpose::STANDARD.decode(input)
|
||||
base64::engine::general_purpose::URL_SAFE.decode(input)
|
||||
}
|
||||
|
||||
/// Get the country from its English name
|
||||
|
|
|
|||
Reference in a new issue