fixed s and better write of m3u8
This commit is contained in:
parent
2c52b4fcfa
commit
7e5d1f3651
@ -44,12 +44,16 @@ fn main() {
|
|||||||
buf = String::new();
|
buf = String::new();
|
||||||
stdin.read_line(&mut buf).unwrap();
|
stdin.read_line(&mut buf).unwrap();
|
||||||
|
|
||||||
|
let user_wish = buf.trim();
|
||||||
// If they want to quit, let them-
|
// If they want to quit, let them-
|
||||||
if buf.trim() == "q" {
|
if user_wish == "q" {
|
||||||
break;
|
break;
|
||||||
|
} else if user_wish == "s" {
|
||||||
|
search_result = None;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let choosen = buf.trim().parse::<usize>();
|
let choosen = user_wish.parse::<usize>();
|
||||||
match choosen {
|
match choosen {
|
||||||
Ok(k) => {
|
Ok(k) => {
|
||||||
let search_result = search_result.as_ref().unwrap().clone();
|
let search_result = search_result.as_ref().unwrap().clone();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user