Movie Info Provider test: print WATC results
authorSimón Pena <spenap@gmail.com>
Mon, 17 May 2010 13:57:54 +0000 (15:57 +0200)
committerSimón Pena <spenap@gmail.com>
Mon, 17 May 2010 14:17:28 +0000 (16:17 +0200)
The response-received callback function is now capable
of WATC Movie extraction, printing the results found.

test/mvs-minfo-provider-test.c

index bf258f1..7f80c30 100644 (file)
@@ -52,6 +52,15 @@ response_received_callback (MvsMInfoProvider *minfo_provider, GList *list,
 
                         g_object_unref (tmdb_movie);
                 }
+                else if (MVS_IS_WATC_MOVIE (tmp->data)) {
+
+                        MvsWatcMovie *watc_movie = MVS_WATC_MOVIE (tmp->data);
+
+                        mvs_watc_movie_print (watc_movie);
+                        g_print ("\n");
+
+                        g_object_unref (watc_movie);
+                }
         }
 
         g_list_free (list);