MutopiaProject / MutopiaWeb

MutopiaProject site evolution to HTML5
3 stars 7 forks source link

Fix instrument matches #84

Closed glenl closed 8 years ago

glenl commented 8 years ago

This needs a review but I think it solves this particular problem.

Caveat: the core of this problem is that we determine some of our page information (number of pieces that use a particular instrument, for example) from the searchcache.dat file and then perform searches on the musiccache.dat. This may seem benign but it means that our regex search pattern is duplicated in 3 places.

Also fixes the problem with Harp counts, which should never have matched piece 1743.

Close #83