bookmark cleaning up

This commit is contained in:
Aaron Manning
2026-07-02 14:44:14 +01:00
parent 7c744d575a
commit 2449ef1c16
4 changed files with 67 additions and 11 deletions
+10 -3
View File
@@ -6,10 +6,17 @@ 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 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";
macro_rules! playlist_ext { () => {"m3u8"}; }
pub(crate) const PLAYLIST_EXT: &str = playlist_ext!();
macro_rules! bookmark_ext { () => {"bmark"}; }
pub(crate) const BOOKMARK_EXT: &str = bookmark_ext!();
pub(crate) const PLAYLIST_BOOKMARK_EXT: &str = concat!(playlist_ext!(), ".", bookmark_ext!());
pub(crate) const LISTENED_PLAYLIST_PATH: &str = concat!("[PC] (Listened).", playlist_ext!());
pub(crate) const MASTER_PLAYLIST_PATH: &str = concat!("[PC] (Master Feed).", playlist_ext!());
pub(crate) const MASTER_PLAYLIST_NAME: &str = "[PC] (Master Feed)";
pub(crate) const PLAYLIST_PREFIX: &str = "[PC]";