Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <Error: No such option: --quality> #640

Open
Gabri04 opened this issue Mar 1, 2024 · 12 comments
Open

[BUG] <Error: No such option: --quality> #640

Gabri04 opened this issue Mar 1, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@Gabri04
Copy link

Gabri04 commented Mar 1, 2024

Describe the bug

The quality option doesn't seem to work.

`rip url --quality 3 https://tidal.com/browse/album/147569387
Usage: rip url [OPTIONS] URLS...
Try 'rip url --help' for help.

Error: No such option: --quality`

Command Used

rip url --quality 3 https://tidal.com/browse/album/147569387

Debug Traceback

rip -vvv url --quality 3 https://tidal.com/browse/album/147569387
[11:08:11] DEBUG    Showing all debug logs                                                                    cli.py:102
Usage: rip url [OPTIONS] URLS...
Try 'rip url --help' for help.

Error: No such option: --quality

Config File

it didn't find one

`Error: No such option: --open`

Operating System

Windows

streamrip version

2.0.5

Screenshots and recordings

No response

Additional context

No response

@Gabri04 Gabri04 added the bug Something isn't working label Mar 1, 2024
@apostoiis
Copy link

For me, it doesn't work with --codec flag either. So it must be something more generic?

@Gabri04
Copy link
Author

Gabri04 commented Mar 1, 2024 via email

@CriticalPeriod
Copy link

-m -c options work in version 1.9.7

@AllKind
Copy link

AllKind commented Mar 1, 2024

rip --help
Usage: rip [OPTIONS] COMMAND [ARGS]...

  Streamrip: the all in one music downloader.

Options:
  --version                    Show the version and exit.
  --config-path PATH           Path to the configuration file
  -f, --folder DIRECTORY       The folder to download items into.
  -ndb, --no-db                Download items even if they have been logged in
                               the database
  -q, --quality INTEGER RANGE  The maximum quality allowed to download
                               [0<=x<=4]
  -c, --codec TEXT             Convert the downloaded files to an audio codec
                               (ALAC, FLAC, MP3, AAC, or OGG)
  --no-progress                Do not show progress bars
  -v, --verbose                Enable verbose output (debug mode)
  --help                       Show this message and exit.

Commands:
  config    Manage configuration files.
  database  View and modify the downloads and failed downloads databases.
  file      Download content from URLs in a file.
  id        Download an item by ID.
  lastfm    Download tracks from a last.fm playlist.
  search    Search for content using a specific source.
  url       Download content from URLs.

How about rip --quality url ... ?

@Gabri04
Copy link
Author

Gabri04 commented Mar 6, 2024

-m -c options work in version 1.9.7

Hello, I tried using the 1.9.7 version but it doesn't work. Probably outdated. Any suggestion?

@unMichalBak
Copy link

I can confirm the same problem with --code & --quality switches not working on Windows

@benzekat75
Copy link

hello probably a bug in the cmdline parser as I have the same issue with --no-db or -ndb or in fact... anything else :)

@unMichalBak
Copy link

yes, I know that's why it's reported as a bug :)
but I can confirm that for example : rip -c mp3 url
works correctly, also rip --codec mp3 url
so it seems that docs/manual is providing incorrect info or the order of args has changed

@benzekat75
Copy link

yes, I know that's why it's reported as a bug :) but I can confirm that for example : rip -c mp3 url works correctly, also rip --codec mp3 url so it seems that docs/manual is providing incorrect info or the order of args has changed

dang thanks indeed works in the order you mentioned, I haven't even thought it could be that :)

@benzekat75
Copy link

in fact :

rip --help gives
Usage: rip [OPTIONS] COMMAND [ARGS]...

and rip url --help gives
Usage: rip url [OPTIONS] URLS..

it's minor then :)

@tannerbaum
Copy link
Contributor

so it seems that docs/manual is providing incorrect info or the order of args has changed

The manual page found at rip url --help is up to date, the README and in turn github home page is out of date. What is confusing the situation is that users who are on older versions of the library will tell you these commands work fine. But indeed, --quality has been replaced with --max-quality.

@mortalis13
Copy link
Contributor

Or I'm missing something or it's really confusing...
First time using it, so I may be wrong, but...it seems very simple:
rip --help tells about options --quality and --codec
rip url --help has no options, apart from --help

Tested installing a version from pip and from the dev branch.

So --quality and --codec are options for rip directly, that go before url or any other command.

There's no --max-quality, neither before url not after. It's not in the code either.
Or it's a future idea to be changed in the code or a misdescription in the readme...

And you can use the options with and without a =.
Basically, just follow the help text from the binary, it tells the correct options that were configured in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants