mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2026-02-04 06:42:09 +00:00
fix: cookie path dir
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user