From d936de154cc281dc21a8d3fa0b82706cbdafe377 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 1 Nov 2018 00:45:35 +0100 Subject: [PATCH] Some tweaks to the IPTV status fetching. --- nageru/ultimate.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nageru/ultimate.lua b/nageru/ultimate.lua index 1bda22f..63512bf 100644 --- a/nageru/ultimate.lua +++ b/nageru/ultimate.lua @@ -3,7 +3,7 @@ local http_request = require("http.request") local cqueues = require("cqueues") local cq = cqueues.new() -local futatabi_server = "http://gruessi.trd.sesse.net:9095" +local futatabi_server = "http://gruessi.trd.sesse.net:9096" local state = { transition_start = -2.0, @@ -42,8 +42,9 @@ local NUM_CAMERAS = 6 -- Remember to update neutral_colors, too. -- Update the Futatabi status in the title. replay_title = "IPTV" cq:wrap(function() + local req = http_request.new_from_uri(futatabi_server .. "/queue_status") while true do - local headers, stream = http_request.new_from_uri(futatabi_server .. "/queue_status"):go() + local headers, stream = req:go() if headers == nil then replay_title = "IPTV" print(futatabi_server .. ": Could not connect to get queue_status") -- 2.39.2