move podcasts to within nested podcasts folder (significant breaking change)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
mod rss;
|
||||
mod input;
|
||||
mod tagging;
|
||||
mod folders;
|
||||
mod download;
|
||||
|
||||
use input::{Command, ListenStatus};
|
||||
@@ -8,7 +9,6 @@ use input::{Command, ListenStatus};
|
||||
use std::fs;
|
||||
|
||||
use anyhow::Context;
|
||||
use sanitise_file_name::sanitise;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
|
||||
@@ -17,7 +17,7 @@ fn main() -> anyhow::Result<()> {
|
||||
input::Args::parse()
|
||||
};
|
||||
|
||||
let config : input::Config = {
|
||||
let config: input::Config = {
|
||||
let config = fs::read_to_string(&args.config)
|
||||
.context("failed to read in podcast configuration file")?;
|
||||
|
||||
@@ -48,7 +48,7 @@ fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
},
|
||||
Command::List { status, podcast } => {
|
||||
let output = root.join(sanitise(&podcast));
|
||||
let output = folders::podcast_folder(root, &podcast);
|
||||
let spec_file = output.join("spec.toml");
|
||||
|
||||
let spec = download::Specification::read_from(&spec_file)?;
|
||||
@@ -64,7 +64,7 @@ fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
},
|
||||
Command::Mark { status, podcast } => {
|
||||
let output = root.join(sanitise(&podcast));
|
||||
let output = folders::podcast_folder(root, &podcast);
|
||||
let spec_file = output.join("spec.toml");
|
||||
|
||||
let mut spec = download::Specification::read_from(&spec_file)?;
|
||||
|
||||
Reference in New Issue
Block a user