configure.ac: Revise --with-nsfw help string
[libquvi-scripts.git] / tests / media / media_dailymotion.c
blobb56e9b5282589b13b9f5cc4312ae45331b4e9241
1 /* libquvi-scripts
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301, USA.
20 #include "config.h"
22 #include <string.h>
23 #include <glib.h>
24 #include <quvi.h>
26 #include "tests.h"
28 static const gchar URL[] =
29 "http://www.dailymotion.com/video/xm8t99_king-kong-vs-godzilla_shortfilms";
31 static const gchar TITLE[] =
32 "King Kong Vs. Godzilla";
34 static const gchar ID[] =
35 "xm8t99";
37 static void test_media_dailymotion()
39 struct qm_test_exact_s e;
40 struct qm_test_opts_s o;
42 memset(&e, 0, sizeof(e));
43 memset(&o, 0, sizeof(o));
45 e.title = TITLE;
46 e.id = ID;
48 /* String values. */
50 o.s_len_gt0.stream.video.encoding = TRUE;
51 o.s_len_gt0.stream.container = TRUE;
53 /* Numerical values. */
55 o.gt0.stream.video.height = TRUE;
56 o.gt0.stream.video.width = TRUE;
58 qm_test(__func__, URL, &e, &o);
61 gint main(gint argc, gchar **argv)
63 g_test_init(&argc, &argv, NULL);
64 g_test_add_func("/media/dailymotion", test_media_dailymotion);
65 return (g_test_run());
68 /* vim: set ts=2 sw=2 tw=72 expandtab: */