From cb93edb7b2c054e4309264df0d9beb84a5dd0a90 Mon Sep 17 00:00:00 2001 From: sarendsen Date: Thu, 2 Nov 2023 13:00:16 +0100 Subject: [PATCH] fix: move to base32 --- README.md | 2 +- src/config.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 691378c..3792e21 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Remix your plex recommendations. ## Test server -There is a test server available, you can use it by base32 encoding your plex url and put it in front of replex.stream as a subdomain. +There is a Replex test server available, you can use it by base32 encoding your plex url and put it in front of replex.stream as a subdomain. Example: diff --git a/src/config.rs b/src/config.rs index 376f673..7fa0371 100644 --- a/src/config.rs +++ b/src/config.rs @@ -146,8 +146,8 @@ impl Config { // let decoded_host: String = crockford::decode(val[0].to_uppercase()).unwrap().to_string(); let mut output = vec![0; BASE32.decode_len(owned_val.len()).unwrap()]; let len = BASE32.decode_mut(owned_val.as_bytes(), &mut output).unwrap(); - // dbg!(std::str::from_utf8(&output[0 .. len]).unwrap()); - config = config.join(("host", std::str::from_utf8(&decoded_host).unwrap())); + dbg!(std::str::from_utf8(&output[0 .. len]).unwrap()); + config = config.join(("host", std::str::from_utf8(&output[0 .. len]).unwrap())); // config = config.join(("host", decoded_host)); }