]> git.sesse.net Git - ultimatescore/commitdiff
Some tweaks to the IPTV status fetching.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 31 Oct 2018 23:45:35 +0000 (00:45 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 31 Oct 2018 23:46:41 +0000 (00:46 +0100)
nageru/ultimate.lua

index 1bda22f73734a18d25921de13ba044ef1934ce43..63512bfad9c25cc886585995896ed4239e242124 100644 (file)
@@ -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")