foo_spider_monkey_panel icon indicating copy to clipboard operation
foo_spider_monkey_panel copied to clipboard

Port getfileinfo(full) from jscript

Open regorxxx opened this issue 1 year ago • 3 comments

Would it be possible to implement this? https://marc2k3.github.io/jscript-panel/docs/interfaces/IMetadbHandle/#getfileinfofull_info

Have found chromaprint fingerprint matching becomes impossible for big libaries.

The full raw fingerprints must be cached by foobar at init (otherwise we get the '.' value), but then it easily takes 2GB of ram for 70 K tracks XD. I tried to alleviate the problem creating a reverse index dictionary (cached in a file), which takes 1GB... but I have to load the raw fingerprints to create it first, thus reaching +3GB limit.

I had to totally disable the chromaprint logic within my scripts due to memory allocation crashes.

The ram limitation would be easily solved by reading directly from files. It would also be obviously useful for other use cases, like lyrics, etc.

regorxxx avatar Aug 09 '22 20:08 regorxxx

Won't be necessary with fb2k v2. Using fb.TitleFormat or the existing GetFileInfo will fetch oversized tags in full.

marc2k3 avatar Aug 13 '22 06:08 marc2k3

Yep, just thought it when reading the thread at HA. Peter wrote it a day later hahahaha

regorxxx avatar Aug 13 '22 07:08 regorxxx

Well after all this time, it will be fine on v2 it seems since tag caching will use the entire tag.

But v1 would still appreciate the method.

regorxxx avatar Dec 24 '22 14:12 regorxxx