summaryrefslogtreecommitdiff
path: root/xc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xc.lua')
-rw-r--r--xc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xc.lua b/xc.lua
index e1f37d7..bfac020 100644
--- a/xc.lua
+++ b/xc.lua
@@ -7,7 +7,7 @@ local mt = {}
mt.__index = mt
function xc.new(t)
- assert(t.server)
+ assert(t.url)
assert(t.user)
assert(t.pass)
@@ -16,7 +16,7 @@ end
function mt:get(path, params)
local url =
- self.server .. path ..
+ self.url .. path ..
'?username=' .. self.user ..
'&password=' .. self.pass
for k, v in pairs(params or {}) do
@@ -110,12 +110,12 @@ end
function mt:stream_url(stream_type, stream_id)
if stream_type == 'series' then
- return self.server .. '/series/' ..
+ return self.url .. '/series/' ..
self.user .. '/' ..
self.pass .. '/' ..
stream_id .. '.vod'
else
- return self.server .. '/' ..
+ return self.url .. '/' ..
self.user .. '/' ..
self.pass .. '/' ..
stream_id