common/: Use socket.url
[libquvi-scripts.git] / tests / media / media_academicearth.c
blob62be3cc52cd684800d95c2e8d296a147d8938a9a
1 /* libquvi-scripts
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 /* media/academicearth.lua uses the "goto_url", this means that the media
21 * is hosted elsewhere, in this case: YouTube. */
23 #include "config.h"
25 #include <string.h>
26 #include <glib.h>
27 #include <quvi.h>
29 #include "tests.h"
31 static const gchar URL[] =
32 "http://www.academicearth.org/lectures/darwin-and-science";
34 static const gchar TITLE[] =
35 "History 2D: Science, Magic, and Religion, Lecture 12, UCLA";
37 static const gchar ID[] =
38 "QIDXKoy59Ho";
40 static void test_media_academicearth()
42 struct qm_test_exact_s e;
43 struct qm_test_opts_s o;
45 memset(&e, 0, sizeof(e));
46 memset(&o, 0, sizeof(o));
48 e.title = TITLE;
49 e.id = ID;
51 qm_test(__func__, URL, &e, &o);
54 gint main(gint argc, gchar **argv)
56 g_test_init(&argc, &argv, NULL);
57 g_test_add_func("/media/academicearth", test_media_academicearth);
58 return (g_test_run());
61 /* vim: set ts=2 sw=2 tw=72 expandtab: */