I've found an interesting gem to discover from an unknown file which music it comes from returning the title and the artist : https://github.com/tenderlove/earworm

The fact is the last commit was 4 years ago and the website used is no longer working...

Does anyone know of another solution for this problem ? Another gem or another snippet ?

有帮助吗?

解决方案

You could use taglib. I used it in my mylastfavourite script and it works really good and fast.

It reads mp3 tags. If you search for a gem which takes the stuff from a webservive, you could try rbrainz for example. I never worked with this before.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top