unsyncing podcasts feature; local playlists for syncing only

This commit is contained in:
Aaron Manning
2026-05-02 09:14:40 +01:00
parent f0c77aed29
commit 7c744d575a
5 changed files with 174 additions and 85 deletions
+13 -2
View File
@@ -8,8 +8,9 @@ pub(crate) const LOCAL_PLAYLISTS_DIR: &str = "playlists";
pub(crate) const IPOD_PODCASTS_DIR: &str = "Podcasts";
pub(crate) const LISTENED_PLAYLIST_PATH: &str = "[PC Meta] [Listened].m3u";
pub(crate) const MASTER_PLAYLIST_PATH: &str = "[PC Meta] [Master Feed].m3u";
pub(crate) const LISTENED_PLAYLIST_PATH: &str = "[PC] (Listened).m3u";
pub(crate) const MASTER_PLAYLIST_PATH: &str = "[PC] (Master Feed).m3u";
pub(crate) const MASTER_PLAYLIST_NAME: &str = "[PC] (Master Feed)";
pub(crate) const PLAYLIST_PREFIX: &str = "[PC]";
pub(crate) const UNLISTENED_SUFFIX: &str = "(unlistened)";
@@ -20,3 +21,13 @@ pub(crate) fn podcast_folder(
) -> path::PathBuf {
root.join(LOCAL_PODCASTS_DIR).join(sanitise(alias))
}
pub(crate) fn spec_path(
root: &path::Path,
alias: &str,
) -> path::PathBuf {
let folder = podcast_folder(root, alias);
folder.join(SPEC_FILE)
}