Skip to content

Commit

Permalink
fix: move to base32
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t committed Nov 2, 2023
1 parent 4f217de commit cb93edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}
Expand Down

0 comments on commit cb93edb

Please sign in to comment.