nathom / streamrip

A scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer
GNU General Public License v3.0
2.35k stars 209 forks source link

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

Open Gabri04 opened 4 months ago

Gabri04 commented 4 months ago

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

apostoiis commented 4 months ago

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

Gabri04 commented 4 months ago

I agree with you, it has to be a more generic problem

On Fri, Mar 1, 2024, 12:05 PM Apostolis Taxidaridis < @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/nathom/streamrip/issues/640#issuecomment-1972985765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVAIXN7FK4KEI2GTKETYVUTYWBOG3AVCNFSM6AAAAABEBPZ3HSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZSHE4DKNZWGU . You are receiving this because you authored the thread.Message ID: @.***>

CriticalPeriod commented 4 months ago

-m -c options work in version 1.9.7

AllKind commented 4 months ago
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 commented 4 months ago

-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 commented 3 months ago

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

benzekat75 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

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 commented 1 month ago

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.