#[derive(Debug, Clone)]
pub struct NexusPhpSite {
    pub key: String,
    pub name: String,
    pub base_url: String,
    pub list_path: String,
    pub detail_path: String,
    pub download_path: String,
    pub search_param: String,
    pub query_params: Vec<(String, String)>,
    pub link_selector: String,
}

pub type StandardNexusPhpSite = NexusPhpSite;

impl Default for NexusPhpSite {
    fn default() -> Self {
        Self {
            key: "nexusphp".to_string(),
            name: "NexusPHP".to_string(),
            base_url: String::new(),
            list_path: "torrents.php".to_string(),
            detail_path: "details.php".to_string(),
            download_path: "download.php".to_string(),
            search_param: "search".to_string(),
            query_params: vec![],
            link_selector: "a[href*='details.php?id='], a[href*='download.php?id=']".to_string(),
        }
    }
}
