1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 02:09:52 +00:00

stats: proper usage of imported module

and comment nitpicking
This commit is contained in:
Julian 2015-05-29 16:04:57 +02:00 committed by wm4
parent 0bf4b0d18a
commit d88adcfbc7

View File

@ -10,15 +10,15 @@
-- Please note: not every property is always available and therefore not always
-- visible.
require 'mp.options'
local options = require 'mp.options'
-- options
-- Options
local o = {
ass_formatting = true,
duration = 3,
debug = false,
-- text style
-- Text style
font = "Source Sans Pro",
font_size = 11,
font_color = "FFFFFF",
@ -34,21 +34,21 @@ local o = {
-- use this string instead.
custom_header = "",
-- text formatting
-- with ASS
-- Text formatting
-- With ASS
nl = "\\N",
prop_indent = "\\h\\h\\h\\h\\h",
kv_sep = "\\h\\h",
b1 = "{\\b1}",
b0 = "{\\b0}",
-- without ASS
-- Without ASS
no_ass_nl = "\n",
no_ass_prop_indent = "\t",
no_ass_kv_sep = " ",
no_ass_b1 = "",
no_ass_b0 = "",
}
read_options(o)
options.read_options(o)
function main()
@ -166,7 +166,7 @@ function append_property(s, sec, prop, prefix, suffix)
end
-- one could merge this into append_property, it's just a bit more verbose this way imo
-- One could merge this into append_property, it's just a bit more verbose this way imo
function append_property_inline(s, sec, prop, prefix, suffix, no_prefix_markup, no_prefix_sep, no_indent)
local ret = mp.get_property_osd(prop)
if ret == nil or ret == "" then