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
23 #define USERDATA_QUVI_T "_quvi_t"
25 /* Common to all scripts */
27 #define GS_VERBOSE "verbose" /* Verbose flag */
29 /* Media script: Media properties */
31 #define MS_CAN_PARSE_URL "can_parse_url" /* Script can parse URL */
32 #define MS_START_TIME_MS "start_time_ms" /* Start streaming at */
33 #define MS_DURATION_MS "duration_ms" /* Media duration in ms */
34 #define MS_INPUT_URL "input_url" /* App req. URL */
35 #define MS_THUMB_URL "thumb_url" /* Image thumbnail URL */
36 #define MS_GOTO_URL "goto_url" /* Redirect to URL */
37 #define MS_DOMAINS "domains" /* Accepted domains */
38 #define MS_TITLE "title" /* Media title */
39 #define MS_ID "id" /* Media ID */
40 #define MS_STREAMS "streams" /* Media streams */
42 /* Media script: stream properties */
44 #define MSS_VIDEO "video"
45 #define MSS_VIDEO_BITRATE_KBIT_S "bitrate_kbit_s"
46 #define MSS_VIDEO_ENCODING "encoding"
47 #define MSS_VIDEO_HEIGHT "height"
48 #define MSS_VIDEO_WIDTH "width"
50 #define MSS_AUDIO "audio"
51 #define MSS_AUDIO_BITRATE_KBIT_S MSS_VIDEO_BITRATE_KBIT_S
52 #define MSS_AUDIO_ENCODING MSS_VIDEO_ENCODING
54 #define MSS_FLAGS "flags"
55 #define MSS_FLAGS_BEST "best"
57 #define MSS_CONTAINER "container"
65 #define PS_CAN_PARSE_URL "can_parse_url" /* Script can parse URL */
66 #define PS_INPUT_URL "input_url" /* App req. URL */
67 #define PS_THUMB_URL "thumb_url" /* Playlist thumbnail URL */
68 #define PS_DOMAINS "domains" /* Domains */
69 #define PS_TITLE "title" /* Title */
70 #define PS_MEDIA "media" /* Found media */
71 #define PS_ID "id" /* Playlist ID */
73 /* Playlist script: Media properties */
75 #define PSM_DURATION_MS "duration_ms" /* Duration in ms */
76 #define PSM_TITLE "title" /* Title */
77 #define PSM_URL "url" /* URL */
81 #define SS_INPUT_URL "input_url" /* App req. URL */
82 #define SS_MEDIA_URL "media_url" /* Array of found media URLs */
83 #define SS_CONTENT "content" /* Content to scan */
87 #define US_INPUT_URL "input_url" /* App req. URL */
91 * Used as 'key' (at index -2) and 'value' (at index -1). Many of
92 * the libquvi functions that call lua_next use these indexes. This is
93 * similar to (in Lua):
94 * for k,v in pairs(t) do ... end
97 enum {LI_VALUE
= -1, LI_KEY
= -2};
101 /* vim: set ts=2 sw=2 tw=72 expandtab: */