added unwrap lol
This commit is contained in:
parent
9be0b7d316
commit
fd54890190
File diff suppressed because one or more lines are too long
|
@ -31,7 +31,7 @@ impl Cipher {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn decrypt_chunk(&self, chunk: &mut [u8]) {
|
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);
|
let ciphertext = cipher.encrypt_vec(&metadata_hash);
|
||||||
|
|
||||||
format!("https://cdns-proxy-{}.dzcdn.net/mobile/1/{}", md5_origin.chars().next().unwrap(), hex::encode(ciphertext))
|
format!("https://cdns-proxy-{}.dzcdn.net/mobile/1/{}", md5_origin.chars().next().unwrap(), hex::encode(ciphertext))
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,4 @@ workers_dev = true
|
||||||
kv_namespaces = [
|
kv_namespaces = [
|
||||||
{ binding = "KV", id = "974c0967a84e415daa054bbbcc7f80c6", preview_id = "cfcc6491f3484cbca664913836635113" }
|
{ binding = "KV", id = "974c0967a84e415daa054bbbcc7f80c6", preview_id = "cfcc6491f3484cbca664913836635113" }
|
||||||
]
|
]
|
||||||
vars = { ARL = "amogus" }
|
vars = { ARL = "amogus" }
|
||||||
|
|
Loading…
Reference in New Issue