NebuPookins / thmp

THeoretical Music Player
0 stars 1 forks source link

mime type library doesn't work #9

Open michaelsanford opened 10 years ago

michaelsanford commented 10 years ago

At least on Darwin tenjin 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

Possibly due to crazy UTF/ID3 issues from Песни о Любви и Смерти.

NebuPookins commented 10 years ago

When we tried thmp on Michael's laptop, we had it scan a folder containing a single album, and it reported every file in that album as having type "application/octet-stream" or something like that. When we used the linux command file, file correctly identified the files as being mp3s (I forget the exact mime type).

So the first step is to try and reproduce this problem, e.g. if it something about the specific file he was working with, or was it the mime-magic implementation running on OSX, or what?

NebuPookins commented 10 years ago

The mime type library is "mime-magic", https://npmjs.org/package/mime-magic