Moved noPlaylist function
This commit is contained in:
parent
943199b16c
commit
f9adeb5c40
|
@ -3,6 +3,11 @@ local streams
|
||||||
local urls
|
local urls
|
||||||
local log
|
local log
|
||||||
|
|
||||||
|
local function noPlaylist(reason)
|
||||||
|
log.err('Failed to create playlist:', reason)
|
||||||
|
return {}
|
||||||
|
end
|
||||||
|
|
||||||
local Object = {}
|
local Object = {}
|
||||||
|
|
||||||
function Object:new(overrides)
|
function Object:new(overrides)
|
||||||
|
@ -25,11 +30,6 @@ local parsers = {
|
||||||
LiveStreamParser:new{urlPattern = 'mediaklikk%.hu/duna%-world%-elo'}
|
LiveStreamParser:new{urlPattern = 'mediaklikk%.hu/duna%-world%-elo'}
|
||||||
}
|
}
|
||||||
|
|
||||||
local function noPlaylist(reason)
|
|
||||||
log.err('Failed to create playlist:', reason)
|
|
||||||
return {}
|
|
||||||
end
|
|
||||||
|
|
||||||
function probe()
|
function probe()
|
||||||
return tables.some(Parser.probe, parsers)
|
return tables.some(Parser.probe, parsers)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue