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