This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user