mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2025-12-20 11:04:41 +00:00
fix: cookie path dir
This commit is contained in:
parent
8aa610f8c0
commit
34b7ffd6b5
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user