2 * movie_info_provider.c
4 * This file is part of maevies
5 * Copyright (C) 2009 Simón Pena <spenap@gmail.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 3 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
19 #include "movie_info_provider.h"
20 #include "tmdb_movie.h"
22 void get_info(MaeviesMovie *movie) {
24 TMDBMovie *tmdb_movie = tmdb_get_info(movie->title);
26 movie->ranking = tmdb_movie->rating;
27 movie->year = g_date_get_year(tmdb_movie->released);