I've done some searching in the forums, but haven't been able to find anything that addressed this directly. Perhaps my search fu is weak.
I'm trying to build a custom metadata agent and to start I'm just trying to log some of the values to get an understanding of the object structures.
So I've made a simple search that always returns a matching result with a score 100, and an update that just logs a little data. However, while search is called when I refresh, update isn't. I see that my bundle is initialized, and since the search function is producing log output, I'm guessing the plumbing to get to my code is correctly in place.
Is there some special criteria that is needed to trigger a call to update? From the logs, I don't think anything is broken, but I don't know the messages well enough to be sure.
I'll put the code below for reference. If anyone has anything enlightening here (sure it's just a noob mistake), that would be awesome.
class LFAgent(Agent.TV_Shows):<br /> name = 'Local Files Agent'<br /> languages = [Locale.Language.NoLanguage]<br /> primary_provider = True<br /> <br /> def search(self, results, media, lang, manual):<br /> Log('booyah search')<br /> results.Append(MetadataSearchResult(id = 'null', score = 100))<br /> <br /> def update(self, metadata, media, lang, force):<br /> Log('booyah update')<br /> Log('title: %s', media.title)<br />