[grilo-plugins] apple-trailers: updated to new date format
- From: Guillaume JÃrÃme Emont <guijemont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] apple-trailers: updated to new date format
- Date: Fri, 7 Oct 2011 15:12:52 +0000 (UTC)
commit e43fa9cc3261ec4351113d3dc161dd88356e09aa
Author: Guillaume Emont <guijemont igalia com>
Date: Wed Jun 15 17:44:23 2011 +0200
apple-trailers: updated to new date format
src/media/apple-trailers/grl-apple-trailers.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/media/apple-trailers/grl-apple-trailers.c b/src/media/apple-trailers/grl-apple-trailers.c
index 9977094..109f74f 100644
--- a/src/media/apple-trailers/grl-apple-trailers.c
+++ b/src/media/apple-trailers/grl-apple-trailers.c
@@ -320,6 +320,7 @@ build_media_from_movie (xmlNodePtr node, gboolean xlarge)
gchar *movie_rating;
gchar *movie_studio;
gchar *movie_copyright;
+ GDateTime *date;
media = grl_media_video_new ();
@@ -349,7 +350,11 @@ build_media_from_movie (xmlNodePtr node, gboolean xlarge)
grl_media_set_id (media, movie_id);
grl_media_set_author (media, movie_author);
- grl_media_set_date (media, movie_date);
+ date = grl_date_time_from_iso8601 (movie_date);
+ if (date) {
+ grl_media_set_publication_date (media, date);
+ g_date_time_unref (date);
+ }
grl_media_set_description (media, movie_description);
grl_media_set_duration (media, runtime_to_seconds (movie_duration));
grl_media_set_title (media, movie_title);
@@ -549,7 +554,7 @@ grl_apple_trailers_source_supported_keys (GrlMetadataSource *source)
static GList *keys = NULL;
if (!keys) {
keys = grl_metadata_key_list_new (GRL_METADATA_KEY_AUTHOR,
- GRL_METADATA_KEY_DATE,
+ GRL_METADATA_KEY_PUBLICATION_DATE,
GRL_METADATA_KEY_DESCRIPTION,
GRL_METADATA_KEY_DURATION,
GRL_METADATA_KEY_GENRE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]