Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukafilipxvic committed Apr 5, 2024
1 parent d79c831 commit 85a32f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See `pyzam --help` for more options.

## Known Limitations
### Shazam API Call Limit (Error 429)
Shazam allows up to 20 requests per minute. Hence, a proxy is recommended to improve ```--mixtape``` recognition speeds.
Shazam allows up to 20 requests per minute. Hence, a proxy is recommended to speed up recognition when using ```--mixtape```.

### 12 Second Sample Limit per request
The maximum sample duration that Shazam allows is 12 seconds. Any audio after 12 seconds will not be recieved by Shazam.
4 changes: 2 additions & 2 deletions pyzam/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
Pyzam 0.10
CLI music recognition in python.
A CLI music recognition tool for audio and mixtapes using Python.
"""

import argparse
Expand Down Expand Up @@ -107,7 +107,7 @@ def main() -> None:
# Check if both --input and --loop are used together
if args.input and args.loop:
parser.error("--loop is only allowed with --microphone or --speaker")
# New check for --mixtape with --microphone or --speaker
# Check for --mixtape with --microphone or --speaker
if args.mixtape and (args.microphone or args.speaker):
parser.error("--mixtape is only allowed with --input")

Expand Down

0 comments on commit 85a32f3

Please sign in to comment.