added unwrap lol

This commit is contained in:
uh wot 2021-09-03 04:24:07 +02:00
parent 9be0b7d316
commit fd54890190
Signed by: uhwot
GPG Key ID: CB2454984587B781
3 changed files with 4 additions and 4 deletions

2
dist/worker.js vendored

File diff suppressed because one or more lines are too long

View File

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

View File

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