diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-01-05 23:07:55 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-01-05 23:07:55 (GMT) |
commit | 1d05cd83ccb6ab3d2efbda8a6981204966c2c6d3 (patch) | |
tree | f6e8bcaea7a5902bbeddb1c6481b93c98880cb2f /src/qlistener.lua | |
parent | 66539357003278513103acd6ce6d8ff23d8a9537 (diff) |
use real pool and jingle name
Diffstat (limited to 'src/qlistener.lua')
-rw-r--r-- | src/qlistener.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qlistener.lua b/src/qlistener.lua index d3fc9fd..86004ee 100644 --- a/src/qlistener.lua +++ b/src/qlistener.lua @@ -39,12 +39,12 @@ function handle_now(timestamp, nowcart, nowlen) local results, err = rddb:getCartInfo(nowcart) if results == nil then io.stderr:write("ERROR: can't fetch cart info: " .. err .. "\n") - return nil + return true else - local showtitle, carttype, err = rddb:getCartShowName(nowcart) + local showtitle, carttype = rddb:getCartShowName(nowcart) if showtitle == nil then - io.stderr:write("ERROR: can't fetch show/pool name: " .. err .. "\n") - return nil + io.stderr:write("ERROR: can't fetch show/pool name: " .. carttype .. "\n") + return true else local ret, err = playlog:insertNow(timestamp, nowcart, nowlen, showtitle, results.TITLE, results.ARTIST, results.ALBUM, carttype) if ret == nil then |