selene-core 0.8.2

selene-core is the backend for Selene, a local-first music player
Documentation
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 {
    #[must_use] 
    pub fn extension(&self) -> &'static str {
        match self {
            LyricFormat::Plain => "txt",
            LyricFormat::Lrc { .. } => "lrc",
            LyricFormat::SeleneLrc => "slrc",
        }
    }
}