separate playlist generation
This commit is contained in:
@@ -53,6 +53,14 @@ impl<'a> Specification<'a> {
|
||||
pub(crate) fn path_from_id(&self, id: &str) -> Option<&path::Path> {
|
||||
self.files.get(id).map(|v| &**v)
|
||||
}
|
||||
|
||||
pub(crate) fn feed(&self) -> &BTreeMap<chrono::NaiveDateTime, Vec<Episode<'a>>> {
|
||||
&self.feed
|
||||
}
|
||||
|
||||
pub(crate) fn into_feed_and_files(self) -> (BTreeMap<chrono::NaiveDateTime, Vec<Episode<'a>>>, HashMap<Cow<'a, str>, Cow<'a, path::Path>>) {
|
||||
(self.feed, self.files)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
|
Reference in New Issue
Block a user