Page 1 of 1

Get a file's metadata from URI

Posted: 30 May 2017 14:05
by ASantosVal
Hi everyone,

I'm developing a window to manage multiple files' metadata as my degree's final project.

In my program, I collect the URIs of the files I want to manage, but I have been unable to get the metadata associated to them. This is a simplified version I code I use for this:

const char *uri = methodThatGetsTheUri(); //Here I get the URI
input_item_t *item;
p_item = input_item_New( uri, "Example" ); //Here I get the item form the URI
char *metadataString_title = input_item_GetTitle(item); //Here I extract the metadata form the item
char *metadataString_artist = input_item_GetArtist(item);
[...]

The problem is that metadataString_title , metadataString_artist ... are empty, like the item is not correctly loaded from the URI provided.

Any thoughts on this? Does somebody know how to do this properly or knows of some code that could be used as example?

Re: Get a file's metadata from URI

Posted: 11 Jun 2017 16:21
by Jean-Baptiste Kempf
You should start the preparser.