|
@@ -69,6 +69,21 @@ func GetQuery(ip, command string) map[string]interface{} {
|
|
|
return r
|
|
|
}
|
|
|
|
|
|
+func DebugInfo(ip string) {
|
|
|
+ // Query the current playing thing, and get the tv channels
|
|
|
+ r := GetQuery(ip, "media-player")
|
|
|
+ name, _ := glom.Glom(r, "player.plugin.-name")
|
|
|
+ id, _ := glom.Glom(r, "player.plugin.-id")
|
|
|
+ /*r1 := GetQuery(ip, "tv-channels")
|
|
|
+ chan_name, _ := glom.Glom(r1, "tv-channels.channel.name")
|
|
|
+ chan_phy_id, _ := glom.Glom(r1, "tv-channels.channel.physical-channel")
|
|
|
+ chan_number, _ := glom.Glom(r1, "tv-channels.channel.number")*/
|
|
|
+
|
|
|
+ // Debug print
|
|
|
+ fmt.Printf("Name: %v (%v)\r\n", name, id)
|
|
|
+ //fmt.Printf("Channel: %v (%v / %v)\r\n", chan_name, chan_phy_id, chan_number)
|
|
|
+}
|
|
|
+
|
|
|
func examplePost() {
|
|
|
keys := GetKeys()
|
|
|
_ = keys // Keep alive
|