Agent metadata priority bug for episode title and summary?

I created a modified agent for my Myth recordings based on the excellent Extended Personal Media Shows Agent that will contribute to TheTVDB agent. Basically, I want to get as much metadata from TheTVDB as I can (posters, images, etc...) and then use the episode title and summary from my MythTV program data (which does not include proper Season/Episode data). This works perfectly for shows where the show name is matched but individual episodes are not (i.e. TheTVDB agent doesn't supply episode title and summary data because it doesn't find episode matches). I get posters, theme music, etc... for the show and then the individual episode data is supplied by my Myth Media Assets agent. The problem comes when TheTVDB agent is able to match individual episodes (I supply the original air date in the filename and some episodes can be matched that way). The episode title and summary from TheTVDB sticks even though I have my Myth Media Assets agent set as a higher priority (above TheTVDB) in the agent settings.

 

I have noticed the following.

1) If I manually do an Update Library in my DVR library, new episodes are picked up but episode title and summary data come from TheTVDB if it finds a match. No matter how many times I update, I can never get my Myth Media Assets data to take priority over an episode matched by TheTVDB.

 

2) If, after the new episodes are detected by the Update Library, I do a Force Refresh on the DVR library... THEN the metadata supplied by my Myth Media Assets agent will take priority and replace the metadata from TheTVDB.

 

3) Similarly, if I select a show and do a Refresh just on that show after new episodes have been detected, the Myth Media Assets metadata takes priority and displays correctly.

 

Bottom line, a simple Update Library will find the new episodes, but in order for the metadata to be diplayed with the proper priority, I then have to force a refresh of the show or the entire library.

 

Is this a bug?... a misunderstanding on my part on how things should work?... something missing from my Agent code?

 

 

OS: Linux Mint

Server: Version 0.9.11.17

WebClient: Version 2.3.24