Skip to content

fix(whichsong): update shazamio API call to resolve DeprecationWarning - #136

Open
FPSensor wants to merge 1 commit into
TeamUltroid:mainfrom
FPSensor:fix-whichsong
Open

fix(whichsong): update shazamio API call to resolve DeprecationWarning#136
FPSensor wants to merge 1 commit into
TeamUltroid:mainfrom
FPSensor:fix-whichsong

Conversation

@FPSensor

@FPSensor FPSensor commented Aug 7, 2026

Copy link
Copy Markdown

Summary

This PR addresses a deprecation warning in the whichsong.py plugin[cite: 5] that occurs during audio recognition, ensuring the module remains compatible with newer versions of the shazamio library[cite: 5].


🐛 Bug Fixes & Changes Made

  • Issue: The whichsong plugin utilizes the recognize_song method from the shazamio package[cite: 5]. This function has been explicitly deprecated by the upstream library, which throws a DeprecationWarning into the console and flags it for removal in future updates.
  • Fix: Replaced shazam.recognize_song(path_to_song) with the updated and supported shazam.recognize(path_to_song) method[cite: 5].

🧪 Testing

  • Triggered .whichsong on an audio file and verified that the shazamio engine successfully identifies the track and returns the correct title without logging any deprecation warnings.

Resolved a DeprecationWarning in whichsong.py. The shazamio library has deprecated the recognize_song function. Updated the API call to use the supported recognize method to prevent console spam and ensure future compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant