shazamio / ShazamIO

🎵 Is a free asynchronous library from reverse engineered Shazam API written in Python 3.8+ with asyncio and aiohttp.
MIT License
490 stars 69 forks source link

question: Recognizing multiple songs at the same time #37

Closed juanfrilla closed 1 year ago

juanfrilla commented 1 year ago

Hello, is it possible to recognize multiple songs with the method recognize_song('dora.mp3') at the same time?

I have some mp3s files downloaded that I want to identify its name, it is possible to make this task asynchronously or do I need to make it one by one as the for loop goes on. My goal is to speed up the process of identifying the whole list of mp3s files. I've tried this task with threads and with asyncio but there's no such a difference in time.

Regards

dotX12 commented 1 year ago

Unfortunately it is not possible to transfer multiple songs for identification, shazam supports the identification of one song per operation. It is possible that multiprocessing can help you if you have a very large set of songs.

juanfrilla commented 1 year ago

thank you very much @dotX12

dotX12 commented 7 months ago

Fixed in 0.5.0. See comment: https://github.com/shazamio/ShazamIO/issues/76#issuecomment-1961610344