ipod syncing; updated readme; rust 2024; version bump
This commit is contained in:
@@ -2,11 +2,18 @@ use std::path;
|
||||
|
||||
use sanitise_file_name::sanitise;
|
||||
|
||||
pub(crate) const PODCASTS_DIR: &str = "Podcasts";
|
||||
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(PODCASTS_DIR).join(sanitise(alias))
|
||||
root.join(LOCAL_PODCASTS_DIR).join(sanitise(alias))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user