Moved noPlaylist function

This commit is contained in:
Tibor Baksa 2017-09-09 18:24:00 +02:00
parent 943199b16c
commit f9adeb5c40
1 changed files with 5 additions and 5 deletions

View File

@ -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