Your comments

Lad i would love to see a sample once you compleate one to make sure i am going down the right track with AniDB. That said i may only need AniDB for post processing and loading old libraries since it seems the API can return the AID and EID.

Also not sure about XBMC but plex has an unofficial AniDB plugin for scraping info.  Not sure what file name formats it supports but it should work with AniDB seasions at least.
I would also like to see this.  It would be a a great way to keep geting new books from favorate authors.