Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: getting metadata info from a plugin ? (Read 2353 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

getting metadata info from a plugin ?

currently I am using the play_callback to get notified when tracks are changed, and when this happens, I'd like to get info regarding what the new track is....I've scoured the SDK but have not found anything that seems to work...here is my current attemp
Code: [Select]
  now_playing.copy(track);
 file_info_i_full l_info(now_playing);
 file_info_i_full info2;
 reader *r = 0;
 const char *filepath = l_info.get_file_path();

 input::g_open(r, &info2);

 const char *artist = info2.meta_get("ARTIST");
 const char *album = info2.meta_get("ALBUM");
 const char *title = info2.meta_get("TITLE");

 int n,m=info2.meta_get_count();
 for(n=0;n<m;n++)
 {
     const char *name = info2.meta_enum_name(n);
 }
 
 free(r);


nothing is returned from any of the meta_get calls, and meta_get_count() always returns 0...I know there is an easy way to get this info, so any help would be most excellent...thanks..

oddsock

 

getting metadata info from a plugin ?

Reply #1
#include "../SDK/metadb.h"
Microsoft Windows: We can't script here, this is bat country.