IMDb plugin: fill movie secondary info with genre list
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 11 Nov 2009 09:59:56 +0000 (10:59 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 11 Nov 2009 18:08:27 +0000 (19:08 +0100)
This will be made configurable in the settings. Other possibilites would
be to show the runtime, director or partial list of actors (or a combination
thereof).

src/plugins/imdb-plugin.vala

index 972d89f..8c82ccd 100644 (file)
@@ -142,6 +142,8 @@ class IMDBSource : MovieSource {
                movie.year = year;
                movie.rating = rating;
                movie.genres.field = genres;
+               // TODO - depending on settings, this could be something else, like director info or runtime
+               movie.secondary = movie.genres.to_string ();
                _get_callback (movie);
        }