Merge branch 'tg/next__media_port_ted.lua' into next
[libquvi-scripts.git] / tests / media / media_academicearth.c
blob725243a2f081a95309a5cbf103d9808f61bf75a8
1 /* libquvi-scripts
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This file is part of libquvi-scripts <http://quvi.sourceforge.net>.
6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Affero General Public
8 * License as published by the Free Software Foundation, either
9 * version 3 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General
17 * Public License along with this program. If not, see
18 * <http://www.gnu.org/licenses/>.
21 /* media/academicearth.lua uses the "goto_url", this means that the media
22 * is hosted elsewhere, in this case: YouTube. */
24 #include "config.h"
26 #include <string.h>
27 #include <glib.h>
28 #include <quvi.h>
30 #include "tests.h"
32 static const gchar URL[] =
33 "http://www.academicearth.org/lectures/darwin-and-science";
35 static const gchar TITLE[] =
36 "History 2D: Science, Magic, and Religion, Lecture 12, UCLA";
38 static const gchar ID[] =
39 "QIDXKoy59Ho";
41 static void test_media_academicearth()
43 struct qm_test_exact_s e;
44 struct qm_test_opts_s o;
46 memset(&e, 0, sizeof(e));
47 memset(&o, 0, sizeof(o));
49 e.title = TITLE;
50 e.id = ID;
52 qm_test(__func__, URL, &e, &o);
55 gint main(gint argc, gchar **argv)
57 g_test_init(&argc, &argv, NULL);
58 g_test_add_func("/media/academicearth", test_media_academicearth);
59 return (g_test_run());
62 /* vim: set ts=2 sw=2 tw=72 expandtab: */