use serde::{Deserialize, Serialize};
pub mod plain_lyrics;
pub mod synced_lyrics;
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
pub enum LyricFormat {
Plain,
Lrc { a2: bool },
SeleneLrc,
}
impl LyricFormat {
pub fn extension(&self) -> &'static str {
match self {
LyricFormat::Plain => "txt",
LyricFormat::Lrc { .. } => "lrc",
LyricFormat::SeleneLrc => "slrc",
}
}
}