pub fn feed_parser(url: String, watch_list: Vec<Watchlist>) {
    // Create a channel for the rss feed and return a vector of items.
    let channel = Channel::from_url(&url).unwrap_or_else(|_e| {
        println!("Unable to connect to website. Exiting...");
        error!("Unable to connect to website. Nyaadle closed.");
        std::process::exit(0)
    });
    let items = channel.into_items();

    // Execute the main logic
    nyaadle_logic(items, watch_list, false);
}
/// Function that parses the nyaa.si website then compares it against a
/// file containing the watch list of anime to download.
///
/// If an item title matches the watch list, it invokes the `download` function.
Function that parses the nyaa.si website then compares it against a
file containing the watch list of anime to download.

If an item title matches the watch list, it invokes the `download` function.
Function that parses the nyaa . si website then compares it against a file containing the watch list of anime to download . If an item title matches the watch list it invokes the ` download ` function .
pub fn feed_parser(url: String, watch_list: Vec<Watchlist>) {
    // Create a channel for the rss feed and return a vector of items.
    let channel = Channel::from_url(&url).unwrap_or_else(|_e| {
        println!("Unable to connect to website. Exiting...");
        error!("Unable to connect to website. Nyaadle closed.");
        std::process::exit(0)
    });
    let items = channel.into_items();
    // Execute the main logic
    nyaadle_logic(items, watch_list, false);
}
pub fn feed_parser ( url : String , watch_list : Vec < Watchlist > ) { // Create a channel for the rss feed and return a vector of items. let channel = Channel :: from_url ( & url ) . unwrap_or_else ( | _e | { println ! ( " " ) ; error ! ( " " ) ; std :: process :: exit ( 0 ) } ) ; let items = channel . into_items ( ) ; // Execute the main logic nyaadle_logic ( items , watch_list , false ) ; }
Function that parses the nyaa.si website then compares it against a
file containing the watch list of anime to download.
Function that parses the nyaa . si website then compares it against a file containing the watch list of anime to download .
url
String
watch_list
Vec<Watchlist>
url
String
watch_list
Vec<Watchlist>