mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-06 06:27:40 +03:00
Add "port" command line argument
This commit is contained in:
parent
3652342f46
commit
8560e8a37a
3 changed files with 18 additions and 10 deletions
|
@ -194,10 +194,7 @@ pub fn format_url(url: &str) -> String {
|
|||
|
||||
match re.captures(url) {
|
||||
Some(caps) => format!("/vid/{}/{}", &caps[1], &caps[2]),
|
||||
None => {
|
||||
dbg!(url);
|
||||
String::new()
|
||||
}
|
||||
None => String::new()
|
||||
}
|
||||
}
|
||||
_ => format!("/proxy/{}/", encode(url).as_str()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue