use serde::{Deserialize, Serialize};

pub mod synced_lyrics;

#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
pub enum LyricFormat {
    Plain,
    Lrc { a2: bool },
    SeleneLrc,
}

impl LyricFormat {
    #[must_use]
    pub fn extension(&self) -> &'static str {
        match self {
            LyricFormat::Plain => "txt",
            LyricFormat::Lrc { .. } => "lrc",
            LyricFormat::SeleneLrc => "slrc",
        }
    }
}
