change CDNs to edgecast

This commit is contained in:
uh wot 2024-04-08 16:07:18 +02:00
parent 9952b33e08
commit 8f35b6db60
Signed by: uhwot
GPG key ID: CB2454984587B781
2 changed files with 3 additions and 3 deletions

View file

@ -62,5 +62,5 @@ pub fn legacy_stream_url(md5_origin: &str, format: &str, id: &str, media_version
let cipher = Aes128Enc::new_from_slice(&TRACK_CDN_KEY).unwrap();
let ciphertext = cipher.encrypt_padded_vec::<ZeroPadding>(&metadata_hash);
format!("https://cdns-proxy-{}.dzcdn.net/mobile/1/{}", md5_origin.chars().next().unwrap(), hex::encode(ciphertext))
format!("https://e-cdns-proxy-{}.dzcdn.net/mobile/1/{}", md5_origin.chars().next().unwrap(), hex::encode(ciphertext))
}