WIP taglib hack
#1
Hello devs,

As i have no experience/skill on C++ language, I need help.
I want to see and play my untagged audio files (wav / mlp / etc..) from the library.

I am not sure to have correctly read the source code but:
- in the file xbmc/music/tags/TagLoaderTagLib.cpp
- in the function CTagLoaderTagLib:TonguearseGenericTag

If at the end of the function I add a check to detect if tags are ok,
then if it's not ok, set something like :
Code:
tag.SetTitle(strFileName);
   SetArtist(tag, "");
   tag.SetAlbum("");
   tag.SetTrackNumber("");
   tag.SetYear("");
   SetGenre(tag, "")
   tag.SetComment("");


Will it be ok to xbmc to add the file into the library ?

I don't know how to do that nor how to get strFilename from here...
so if a developper can point me to good direction, It would be great.
Reply
#2
LabelFormatter.cpp - check some of the functions there that split a music filename into artist, track etc.

You don't actually want to alter the TagLib loader specifically. Instead, you want to allow a filename tag loader to run at the end of *any* tagloader returning no information. This might be done in the MusicInfoScanner perhaps.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thanks.

i'll take a look.
Reply

Logout Mark Read Team Forum Stats Members Help
taglib hack0