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
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
[] =
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
));
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: */