pub fn grab_favorites(&mut self) {
        let login = Login::load().unwrap_or_else(|e| {
			error!("Unable to load `login.json`. Error: {}", e);
			warn!("The program will use default values, but it is highly recommended to check your login.json file to ensure that everything is correct.");
			Login::default()
		});
        if !login.username.is_empty() && login.download_favorites {
            let tag_str = format!("fav:{}", login.username);
            let posts = self.special_search(tag_str.as_str());
            self.posts.push(PostCollection::new(
                &tag_str,
                "",
                GrabbedPost::entry_to_vec(posts),
            ));
            info!(
                "{} grabbed!",
                console::style(format!("\"{}\"", tag_str))
                    .color256(39)
                    .italic()
            );
        }
    }
/// If the user supplies login information, this will grabbed the favorites from there account.
If the user supplies login information, this will grabbed the favorites from there account.
If the user supplies login information this will grabbed the favorites from there account .
pub fn grab_favorites(&mut self) {
        let login = Login::load().unwrap_or_else(|e| {
			error!("Unable to load `login.json`. Error: {}", e);
			warn!("The program will use default values, but it is highly recommended to check your login.json file to ensure that everything is correct.");
			Login::default()
		});
        if !login.username.is_empty() && login.download_favorites {
            let tag_str = format!("fav:{}", login.username);
            let posts = self.special_search(tag_str.as_str());
            self.posts.push(PostCollection::new(
                &tag_str,
                "",
                GrabbedPost::entry_to_vec(posts),
            ));
            info!(
                "{} grabbed!",
                console::style(format!("\"{}\"", tag_str))
                    .color256(39)
                    .italic()
            );
        }
    }
pub fn grab_favorites ( & mut self ) { let login = Login :: load ( ) . unwrap_or_else ( | e | { error ! ( " " e ) ; warn ! ( " " ) ; Login :: default ( ) } ) ; if ! login . username . is_empty ( ) && login . download_favorites { let tag_str = format ! ( " " login username ) ; let posts = self . special_search ( tag_str . as_str ( ) ) ; self . posts . push ( PostCollection :: new ( & tag_str , " " , GrabbedPost :: entry_to_vec ( posts ) , ) ) ; info ! ( " " console style ( format ( " \" \" " tag_str ) ) color256 ( 39 ) italic ( ) ) ; } }
If the user supplies login information, this will grabbed the favorites from there account.
If the user supplies login information this will grabbed the favorites from there account .
&mut self
&mut self