use std::path; use sanitise_file_name::sanitise; pub(crate) const SPEC_FILE: &str = "spec.toml"; pub(crate) const LOCAL_PODCASTS_DIR: &str = "podcasts"; pub(crate) const LOCAL_PLAYLISTS_DIR: &str = "playlists"; pub(crate) const IPOD_PODCASTS_DIR: &str = "Podcasts"; pub(crate) const LISTENED_PLAYLIST_PATH: &str = "[PC] [Listened].m3u"; pub(crate) const MASTER_PLAYLIST_PATH: &str = "[PC] [Master Feed].m3u"; pub(crate) fn podcast_folder( root: &path::Path, alias: &str, ) -> path::PathBuf { root.join(LOCAL_PODCASTS_DIR).join(sanitise(alias)) }