//! Novel APIs from various sources

mod ciweimao;
mod ciyuanji;
mod common;
mod sfacg;

pub use ciweimao::*;
pub use ciyuanji::*;
pub use common::*;
pub use sfacg::*;

fn parse_multi_line(text: String) -> Option<Vec<String>> {
    let result = text
        .lines()
        .map(|line| line.trim().to_string())
        .filter(|line| !line.is_empty())
        .collect::<Vec<String>>();

    if result.is_empty() {
        None
    } else {
        Some(result)
    }
}
