Open vishwasmittal opened 5 years ago
fixes #26
I tested the pr, it works fine. Just one small issue that I noticed, it returns the complete cover image data in the JSON response, something like this:
"Picture":{"Ext":"jpg","MIMEType":"image/jpeg","Type":"Cover (front)","Description":"","Data":"/9j/4AAQSkZJRgABAQEASABIAAD/....."}
How to use this image data on the client-side? The purpose behind building this API was to serve chromecast with the URL of the cover image. So it would make sense if we cache this image data in a jpeg file in .fscache
directory and return the URL of the file accessible via /cache
.
Please also include the docs for this API in amahi-anywhere-specs
Yeah, caching the image in .fscache
makes sense. Will update the PR.
Can we get the docs for the API at the same time as the code, so we can deploy it?
Thanks
Added API to fetch metadata for the media files. Following data can be retrieved from a file:
Some of it may be null subject to the data present in the file.