try again
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-11 11:56:30 +11:00
parent 45685ce592
commit 6a8b4bed28
4 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ type ClientInfo struct {
Response ServerResponse `json:"response,omitempty"` Response ServerResponse `json:"response,omitempty"`
} }
//ServerResponse : Response from server after client request // ServerResponse : Response from server after client request
type ServerResponse struct { type ServerResponse struct {
Status bool `json:"status,omitempty"` Status bool `json:"status,omitempty"`
Reason string `json:"reason,omitempty"` Reason string `json:"reason,omitempty"`
@@ -106,7 +106,7 @@ func serverRequest() (err error) {
if resp.StatusCode != http.StatusOK { if resp.StatusCode != http.StatusOK {
//fmt.Println(resp.StatusCode, Updater.URL, Updater.CMD) //fmt.Println(resp.StatusCode, Updater.URL, Updater.CMD)
err = fmt.Errorf(fmt.Sprintf("%d: %s (%s)", resp.StatusCode, http.StatusText(resp.StatusCode), Updater.URL)) err = fmt.Errorf("%d: %s (%s)", resp.StatusCode, http.StatusText(resp.StatusCode), Updater.URL)
return err return err
} }

View File

@@ -323,7 +323,7 @@ func getErrMsg(errCode int) (errMsg string) {
// Tuner // Tuner
case 2105: case 2105:
errMsg = fmt.Sprintf("The number of tuners has changed, you have to delete " + System.Name + " in Plex / Emby HDHR and set it up again.") errMsg = "The number of tuners has changed, you have to delete " + System.Name + " in Plex / Emby HDHR and set it up again."
case 2106: case 2106:
errMsg = fmt.Sprintf("This function is only available with XEPG as EPG source") errMsg = fmt.Sprintf("This function is only available with XEPG as EPG source")

View File

@@ -48,12 +48,12 @@ func BinaryUpdate() (err error) {
if resp.StatusCode != http.StatusOK { if resp.StatusCode != http.StatusOK {
if resp.StatusCode == 404 { if resp.StatusCode == 404 {
err = fmt.Errorf(fmt.Sprintf("Update Server: %s (%s)", http.StatusText(resp.StatusCode), gitInfo)) err = fmt.Errorf("Update Server: %s (%s)", http.StatusText(resp.StatusCode), gitInfo)
ShowError(err, 6003) ShowError(err, 6003)
return nil return nil
} }
err = fmt.Errorf(fmt.Sprintf("%d: %s (%s)", resp.StatusCode, http.StatusText(resp.StatusCode), gitInfo)) err = fmt.Errorf("%d: %s (%s)", resp.StatusCode, http.StatusText(resp.StatusCode), gitInfo)
return err return err
} }
@@ -87,7 +87,7 @@ func BinaryUpdate() (err error) {
err = up2date.GetVersion() err = up2date.GetVersion()
if err != nil { if err != nil {
debug = fmt.Sprintf(err.Error()) debug = err.Error()
showDebug(debug, 1) showDebug(debug, 1)
return nil return nil
@@ -95,7 +95,7 @@ func BinaryUpdate() (err error) {
if len(updater.Response.Reason) > 0 { if len(updater.Response.Reason) > 0 {
err = fmt.Errorf(fmt.Sprintf("Update Server: %s", updater.Response.Reason)) err = fmt.Errorf("Update Server: %s", updater.Response.Reason)
ShowError(err, 6002) ShowError(err, 6002)
return nil return nil

View File

@@ -605,7 +605,7 @@ func mapping() (err error) {
} else { } else {
ShowError(fmt.Errorf(fmt.Sprintf("Missing EPG data: %s", xepgChannel.Name)), 0) ShowError(fmt.Errorf("Missing EPG data: %s", xepgChannel.Name), 0)
showWarning(2302) showWarning(2302)
xepgChannel.XActive = false xepgChannel.XActive = false