| 68 | } |
| 69 | |
| 70 | func getDiscover() (jsonContent []byte, err error) { |
| 71 | |
| 72 | var discover Discover |
| 73 | |
| 74 | discover.BaseURL = System.ServerProtocol.WEB + "://" + System.Domain |
| 75 | discover.DeviceAuth = System.AppName |
| 76 | discover.DeviceID = System.DeviceID |
| 77 | discover.FirmwareName = "bin_" + System.Version |
| 78 | discover.FirmwareVersion = System.Version |
| 79 | discover.FriendlyName = System.Name |
| 80 | |
| 81 | discover.LineupURL = fmt.Sprintf("%s://%s/lineup.json", System.ServerProtocol.DVR, System.Domain) |
| 82 | discover.Manufacturer = "Golang" |
| 83 | discover.ModelNumber = System.Version |
| 84 | discover.TunerCount = Settings.Tuner |
| 85 | |
| 86 | jsonContent, err = json.MarshalIndent(discover, "", " ") |
| 87 | |
| 88 | return |
| 89 | } |
| 90 | |
| 91 | func getLineupStatus() (jsonContent []byte, err error) { |
| 92 | |