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
|
|
@ -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