From 5efaa34d9f4471cfb00727976148220fe22ff848 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Sun, 13 Jan 2013 12:05:14 +0200 Subject: [PATCH] quvi/const: Add subtitle types, formats Signed-off-by: Toni Gundogdu --- share/common/quvi/const.lua | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/share/common/quvi/const.lua b/share/common/quvi/const.lua index a19d08c..380bb18 100644 --- a/share/common/quvi/const.lua +++ b/share/common/quvi/const.lua @@ -1,5 +1,5 @@ -- libquvi-scripts --- Copyright (C) 2010-2012 Toni Gundogdu +-- Copyright (C) 2010-2013 Toni Gundogdu -- -- This file is part of libquvi-scripts . -- @@ -20,6 +20,21 @@ local M = {} +-- +-- subtitle +-- + +-- (s)ubtitle (t)ype +M.st_tts = 0x1 -- text-to-speech +M.st_cc = 0x2 -- closed caption + +-- (s)ubtitle (i)nternal (f)ormat +M.sif_tt = 0x1 -- timed text + +-- +-- quvi.fetch +-- + -- (q)uvi.(f)etch (o)ption M.qfo_from_charset = 0x0 -- Convert (to UTF-8) from this charset M.qfo_user_agent = 0x1 -- Set user-agent string value @@ -32,8 +47,6 @@ M.qft_config = 0x1 M.qft_url = 0x2 -- default --[[ -NOTES -===== qfo_from_charset ---------------- @@ -58,7 +71,7 @@ description for details. If you must define >1 cookies, use the following format: "foo=1; bar=2;" . EXAMPLES -======== +-------- local C = require 'quvi/const' local p = quvi.fetch(URL, {[C.qfo_cookie] = 'foo=1'}) @@ -69,6 +82,7 @@ local t = { [C.qfo_type] = C.qft_config } local p = quvi.fetch(URL, t) + ]]-- return M -- 2.11.4.GIT