fix: fetch YTM playlists with visitor data
feat: add lang/country options to cli
This commit is contained in:
parent
b25e9ebbb7
commit
d6de428549
3 changed files with 41 additions and 7 deletions
|
|
@ -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(),
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue