One of the great features of the TVDB is all the image gallery that they have and provide. To get as much interesting data as possible using Grilo we need to extend our source and a great way to do it is through creating custom metadata-keys.
With these newly created metadata-keys the TVDB source can now provide an url to the most voted Fanart, Poster and Banner of the tv show.
I had included a few tests in the first week but it was just to show that the source was usable. The current version of the tests check if the source is finding the right data in a resolve operation.
Simple enough but helped a lot finding bugs already :)
Well, I thought it would be nice to point a few libraries that I have never used before implementing this source:
- Libxml: Yes, never! I always choose JSON when available! :) The library has a nice documentation with samples but what really helped me was others sources in Grilo. I've also realized that I'm not big fan of camelCase.
- Libarchive: I've come to know about this library in Planet feed when Bastien posted about it. Currently it is also included in Lua-Factory with a function which provides 'unzip' to lua-sources in Grilo. Quite awesome.
- Libgom: Awesome but not very easy. The examples and the blog posts are the best documentation. I've started with a simple DB and at this moment I'm envolving from there before applying it to the TVDB.
Hopefully I'm going to finish the coding of the TVDB source soon enough and then I'll be starting the integration with Totem GNOME Videos. I'm really excited to see all work combined.
Beautiful GNOME-shaped soap. Smells so good!