refactor!: add client_type field to DownloadError, rename cli option po-token-cache to pot-cache
This commit is contained in:
parent
5f5ac65ce9
commit
594e675b39
4 changed files with 23 additions and 11 deletions
|
|
@ -146,6 +146,7 @@ Fetch a list of all the items saved in your YouTube/YouTube Music profile.
|
|||
given path for generating PO tokens
|
||||
- `--no-botguard` Disable Botguard, only download videos using clients that dont require
|
||||
it
|
||||
- `--pot-cache` Enable caching for session-bound PO tokens
|
||||
|
||||
### Output format
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ struct Cli {
|
|||
no_botguard: bool,
|
||||
/// Enable caching for session-bound PO tokens
|
||||
#[clap(long, global = true)]
|
||||
po_token_cache: bool,
|
||||
pot_cache: bool,
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
@ -916,7 +916,7 @@ async fn run() -> anyhow::Result<()> {
|
|||
if cli.no_botguard {
|
||||
rp = rp.no_botguard();
|
||||
}
|
||||
if cli.po_token_cache {
|
||||
if cli.pot_cache {
|
||||
rp = rp.po_token_cache();
|
||||
}
|
||||
if cli.auth {
|
||||
|
|
|
|||
Reference in a new issue