quvi/const: Remove qoo_http_user_agent
[libquvi-scripts.git] / share / common / quvi / const.lua
blob581526ac9592d59e0b1633fe05d733d49efa481b
1 -- libquvi-scripts
2 -- Copyright (C) 2010-2013 Toni Gundogdu <legatvs@gmail.com>
3 --
4 -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
5 --
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 local M = {}
24 -- (q)uvi (err)or codes
26 -- static
27 M.qerr_ok = 0x00
28 M.qerr_callback_aborted = 0x01
29 M.qerr_no_subtitle_export_scripts = 0x02
30 M.qerr_no_subtitle_scripts = 0x03
31 M.qerr_no_playlist_scripts = 0x04
32 M.qerr_no_media_scripts = 0x05
33 M.qerr_no_scan_scripts = 0x06
34 M.qerr_no_util_scripts = 0x07
35 M.qerr_keyword_croak = 0x08
36 M.qerr_invalid_arg = 0x09
37 M.qerr_proxy_init = 0x0a
38 M.qerr_curl_init = 0x0b
39 M.qerr_lua_init = 0x0c
40 -- dynamically created
41 M.qerr_no_support = 0x40
42 M.qerr_callback = 0x41
43 -- an error occurred in a callback, e.g. a network error.
44 M.qerr_script = 0x42
47 -- (q)uvi (o)bject (o)ption
49 M.qoo_croak_if_error = 0x01 -- Terminate if an error occurs
50 -- fetch
51 M.qoo_fetch_from_charset = 0x20 -- Convert (to UTF-8) from this charset
52 -- http
53 M.qoo_http_cookie_mode = 0x40 -- HTTP cookie function
54 -- crypto
55 M.qoo_crypto_cipher_flags = 0x60 -- Cipher flags
56 M.qoo_crypto_cipher_mode = 0x61 -- Cipher mode
57 M.qoo_crypto_cipher_key = 0x62 -- Cipher key (hex-string)
58 M.qoo_crypto_algorithm = 0x63 -- Algorithm, e.g. 'aes' or 'sha1'
61 -- (q)uvi (o)bject (c)rypto (o)ption
62 -- See gcrypt.h, and http://www.gnupg.org/documentation/manuals/gcrypt/
64 -- cipher modes
65 M.qoco_cipher_mode_ecb = 0x01
66 M.qoco_cipher_mode_cfb = 0x02
67 M.qoco_cipher_mode_cbc = 0x03
68 M.qoco_cipher_mode_stream = 0x04
69 M.qoco_cipher_mode_ofb = 0x05
70 M.qoco_cipher_mode_ctr = 0x06
71 -- cipher flags
72 M.qoco_cipher_secure = 0x01
73 M.qoco_cipher_enable_sync = 0x02
74 M.qoco_cipher_cbc_cts = 0x04
75 M.qoco_cipher_cbc_mac = 0x08
78 -- (q)uvi (o)bject (h)ttp (c)ookie (o)ption
80 M.qohco_mode_session = 0x01
81 M.qohco_mode_file = 0x02
82 M.qohco_mode_list = 0x03
83 M.qohco_mode_jar = 0x04
86 -- subtitle
89 -- (s)ubtitle (t)ype
90 M.st_tts = 0x1 -- text-to-speech
91 M.st_cc = 0x2 -- closed caption
93 -- (s)ubtitle (i)nternal (f)ormat
94 M.sif_tt = 0x1 -- timed text
96 return M
98 -- vim: set ts=2 sw=2 tw=72 expandtab: