fix: fetch YTM playlists with visitor data

feat: add lang/country options to cli
This commit is contained in:
ThetaDev 2023-09-28 01:40:18 +02:00
parent b25e9ebbb7
commit d6de428549
3 changed files with 41 additions and 7 deletions

View file

@ -844,7 +844,11 @@ impl FromStr for Language {
Some(pos) => {
sub = &sub[..pos];
}
None => return Err(Error::Other("could not parse language `{s}`".into())),
None => {
return Err(Error::Other(
format!("could not parse language `{s}`").into(),
))
}
}
}
}