Skip to content

Commit

Permalink
fixed shazam music path
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPensart committed Mar 16, 2024
1 parent f7edd2c commit 7a54c88
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 156 deletions.
2 changes: 1 addition & 1 deletion musicbot/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def to_mp3(self, destination: Path, flat: bool = False) -> Self | None:

async def shazam(self) -> Any:
shazam = Shazam()
return await shazam.recognize(self.path)
return await shazam.recognize(str(self.path))

def fingerprint(self, api_key: str) -> str | None:
try:
Expand Down
Loading

0 comments on commit 7a54c88

Please sign in to comment.