added unwrap lol
This commit is contained in:
parent
9be0b7d316
commit
fd54890190
3 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ impl Cipher {
|
|||
}
|
||||
|
||||
pub fn decrypt_chunk(&self, chunk: &mut [u8]) {
|
||||
self.cipher.clone().decrypt(chunk);
|
||||
self.cipher.clone().decrypt(chunk).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,4 +62,4 @@ pub fn legacy_stream_url(md5_origin: &str, format: &str, id: &str, media_version
|
|||
let ciphertext = cipher.encrypt_vec(&metadata_hash);
|
||||
|
||||
format!("https://cdns-proxy-{}.dzcdn.net/mobile/1/{}", md5_origin.chars().next().unwrap(), hex::encode(ciphertext))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue