fixed s and better write of m3u8
This commit is contained in:
		@@ -18,7 +18,7 @@ impl Display for M3u8 {
 | 
				
			|||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            self.name.bold()
 | 
					            self.name.bold()
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        f.write_fmt(format_args!("{}({})", colored_name, self.link))?;
 | 
					        f.write_fmt(format_args!("{} ({})", colored_name, self.link))?;
 | 
				
			||||||
        Ok(())
 | 
					        Ok(())
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user