unsyncing podcasts feature; local playlists for syncing only
This commit is contained in:
+13
-2
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user