fix: cookie path dir

This commit is contained in:
2025-11-07 20:56:52 +02:00
parent 8aa610f8c0
commit 34b7ffd6b5

View File

@@ -98,7 +98,10 @@ impl TwitterConfig {
}
fn get_path_from_env(key: &str) -> Option<PathBuf> {
env::var(key).ok().map(PathBuf::from)
env::var(key)
.ok()
.map(PathBuf::from)
.filter(|p| p.is_file())
}
impl Default for YoutubeConfig {